Skip to main content
edited body
Source Link

Java, 7877 bytes

int f(String s){return s.chars().reduce(0,(r,c)->c<43?r*2:c<46?r+44-c:r>>1);}

Uses java 8 streams.

Java, 78 bytes

int f(String s){return s.chars().reduce(0,(r,c)->c<43?r*2:c<46?r+44-c:r>>1);}

Uses java 8 streams.

Java, 77 bytes

int f(String s){return s.chars().reduce(0,(r,c)->c<43?r*2:c<46?r+44-c:r>>1);}

Uses java 8 streams.

deleted 2 characters in body
Source Link

Java, 8078 bytes

int f(String s){return s.chars().reduce(0,(r,c)->c<43?r*2:c<46?r+44-c:r >> 1r>>1);}

Uses java 8 streams.

Java, 80 bytes

int f(String s){return s.chars().reduce(0,(r,c)->c<43?r*2:c<46?r+44-c:r >> 1);}

Uses java 8 streams.

Java, 78 bytes

int f(String s){return s.chars().reduce(0,(r,c)->c<43?r*2:c<46?r+44-c:r>>1);}

Uses java 8 streams.

deleted 3 characters in body
Source Link
DJMcMayhem
  • 59.6k
  • 17
  • 196
  • 348

Java, 80 bytes.

Java, 80 bytes

int f(String s){return s.chars().reduce(0,(r,c)->c<43?r*2:c<46?r+44-c:r >> 1);}

Uses java 8 streams.

Java, 80 bytes.

int f(String s){return s.chars().reduce(0,(r,c)->c<43?r*2:c<46?r+44-c:r >> 1);}

Uses java 8 streams.

Java, 80 bytes

int f(String s){return s.chars().reduce(0,(r,c)->c<43?r*2:c<46?r+44-c:r >> 1);}

Uses java 8 streams.

Source Link
Loading