4 ms·
Python: https://gist.github.com/amontalenti/8114383 https://gist.github.com/amontalenti/8114383 Java: https://gist.github.com/amontalenti/8114359 https://gist.
by CCs 13y ago
Python: https://gist.github.com/amontalenti/8114383 https://gist.github.com/amontalenti/8114383
Java: https://gist.github.com/amontalenti/8114359 https://gist.github.com/amontalenti/8114359
Scala: https://gist.github.com/csoma/8115672 https://gist.github.com/csoma/8115672
C++11: https://gist.github.com/csoma/8115693 https://gist.github.com/csoma/8115693
- pixelmonkey 13y agoThanks for this. I also put together a Clojure example based on a starting point someone else shared on Github. Clojure: https://gist.github.com/amontalenti/8117294 https://gist.github.com/amontalenti/8117294
- CCs 13y agoIt is interesting to see small implementations like these - you can get a feel for a language in seconds. https://gist.github.com/wting/77c9742fa1169179235f https://gist.github.com/wting/77c9742fa1169179235f
- mnbvcxza 13y agoI believe you could easily get the Scala version to be just as short, in terms of lines, as the Clojure version.