Hacker News new | ask | show | jobs
by keville 1654 days ago
Please see my other comment in this thread for the `reduce`-based solution that requires no extra data structures. They're not that hard to get rid of!