4 ms·
Anywhere I can see Knuth's solution online? Can't seem to find the link in there.
by YZF 8y ago
Anywhere I can see Knuth's solution online? Can't seem to find the link in there.
- wwweston 8y agoHere's the paper: https://www.cs.tufts.edu/~nr/cs257/archive/don-knuth/pearls-2.pdf https://www.cs.tufts.edu/~nr/cs257/archive/don-knuth/pearls-... (ACM ref, too: https://dl.acm.org/citation.cfm?id=315654 https://dl.acm.org/citation.cfm?id=315654 ) Also, I found a blog post which links to a C version of the exercise in the spirit of Knuth's approach, and a Haskell version in the spirit of McIlroy's: https://franklinchen.com/blog/2011/12/08/revisiting-knuth-and-mcilroys-word-count-programs/ https://franklinchen.com/blog/2011/12/08/revisiting-knuth-an...