3 ms·
In Lisp: http://www.ic.unicamp.br/~meidanis/courses/mc336/2006s2/funcional/L-99_Ninety-Nine_Lisp_Problems.html http://www.ic.unicamp.br/~meidanis/courses/mc336/
by swolchok 17y ago
In Lisp: http://www.ic.unicamp.br/~meidanis/courses/mc336/2006s2/funcional/L-99_Ninety-Nine_Lisp_Problems.html http://www.ic.unicamp.br/~meidanis/courses/mc336/2006s2/func...
In Haskell: http://www.haskell.org/haskellwiki/H-99:_Ninety-Nine_Haskell_Problems http://www.haskell.org/haskellwiki/H-99:_Ninety-Nine_Haskell...
I found that actually solving these in Haskell reduced to "how familiar are you with the standard library"". It seems to be very similar in Python.
- mbrubeck 17y agoThe simple 13-line Haskell solution to P27 is an interesting contrast to the 27-line Python solution with its two layers of indirection. The Haskell solution is much more declarative. (If you ported some of the Haskell Prelude to Python you might be able to write something similar, though without the nice List Monad syntax.)