TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The Archive of Interesting Code

158 pointsby objectivefsabout 12 years ago

11 comments

krat0sprakharabout 12 years ago
Shameless plug : I have a few of these ported to Python as well - <a href="https://github.com/prakhar1989/Algorithms" rel="nofollow">https://github.com/prakhar1989/Algorithms</a>
tlarkworthyabout 12 years ago
Um, pick me too! Persistent Red-Black Tree <a href="http://wiki.edinburghhacklab.com/persistentredblacktreeset" rel="nofollow">http://wiki.edinburghhacklab.com/persistentredblacktreeset</a>
bigfootabout 12 years ago
Under what license may I reuse those snippets -- or are they too short to provoke legal issues anyways?
评论 #5698118 未加载
txetabout 12 years ago
nice collection of things to study in one place. Any other similar..?
评论 #5697216 未加载
评论 #5697481 未加载
评论 #5696957 未加载
评论 #5697316 未加载
hokaabout 12 years ago
Nice and simple; I like it! Also, you just made every introductory CS teacher cringe, unless they import all of these into their cheating detection system.
评论 #5731386 未加载
wfunctionabout 12 years ago
I was so happy to see the in-place merge algorithm!<p>Does anyone know if there is an implementation of the (supposedly) faster version, which was published in this later paper?<p><a href="http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.134.2842" rel="nofollow">http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.134....</a>
CountHackulusabout 12 years ago
Lots of really interesting things here. The most valuable is definitely having some reference implementations.
pathikritabout 12 years ago
I am building a Scala one here: <a href="https://github.com/pathikrit/scalgos" rel="nofollow">https://github.com/pathikrit/scalgos</a>
weboabout 12 years ago
Bidirectional Map can be implemented in less than 20 lines (put, get, remove).
optiminimalistabout 12 years ago
Fantastic list. A great way to supplement the theory from CLRS, etc.
abcd_fabout 12 years ago
Some are interesting, but there's lots of mundane and generally boring stuff too, e.g. [1]<p>[1] <a href="http://www.keithschwarz.com/interesting/code/?dir=argmax" rel="nofollow">http://www.keithschwarz.com/interesting/code/?dir=argmax</a>
评论 #5697601 未加载