Timeline for Adding up the digits and the digits reversed
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 23, 2016 at 9:08 | comment | added | edc65 | Note: using simple js arithmetic this is limited to values 1 .. 12 | |
Feb 23, 2016 at 9:07 | comment | added | edc65 |
n=>(a=[...Array(n)].map(_=>n--)).join- -a.reverse().join
|
|
Feb 23, 2016 at 8:36 | history | edited | Neil | CC BY-SA 3.0 |
added 41 characters in body; added 10 characters in body
|
Feb 23, 2016 at 1:07 | comment | added | Downgoat |
You can remove the first + and make the + + -> - - to save a byte
|
|
Feb 22, 2016 at 22:57 | history | answered | Neil | CC BY-SA 3.0 |