I posted this code snippet in Twitter to get responses. I wrote the original code in Ruby, and others wrote ones in Perl and Haskell. Others and I also tried to write ones in Java and C++, but failed. I also wrote it in CoffeeScript.
- Perl http://gist.github.com/463980 by sartak
- Haskell http://gist.github.com/464078 by eagletmt
- CoffeeScript http://gist.github.com/471778 by ujihisa
If anyone tried this challenge, please let me know. For example I didn't get responses in Lisp family languages.
I've written by C++.
ReplyDeletehttp://gist.github.com/477940