Re:Can you solve it? The Greplin programming challenge
by rpbertp13 on Friday October 08, 2010 @04:52PM
(#1773336)
35 mins, but in less than 40 lines of ruby
[ Parent
| on HN ]
Re:Can you solve it? The Greplin programming challenge
by djacobs on Friday October 08, 2010 @06:02PM
(#1773601)
I 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).