4 ms·
35 mins, but in less than 40 lines of ruby
by rpbertp13 16y ago
35 mins, but in less than 40 lines of ruby
- djacobs 16y agoI used Ruby, too. Nothing else required. I think Clojure might've made things a tad easier (given all its sequence functions), but I'm just learning it, so Ruby all the way. That said, finding the palindromes in Ruby took me about 12 lines of code (less if I didn't structure it using methods).