Comment by peregrine
15 years ago
I think the more interesting solutions are deeper in the thread mainly #43, #44, #83.
Mostly just for fun but its neat to see an Erlang solution since this should be right up its alley.
15 years ago
I think the more interesting solutions are deeper in the thread mainly #43, #44, #83.
Mostly just for fun but its neat to see an Erlang solution since this should be right up its alley.
Please share for the net-nannied among us.
Erlang version for you:
Edit: finally got the formatting right.
javascript version for you:
Works with negative numbers.
your code can be simplified a bit:
1 reply →