Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on How has algorithms and data structures helped you?.
For instance, sometimes I work with IP addresses, like "I have to grab the entry that matches this IP the most"
When you know the existence of radix trees, the problem is easy to solve : use a lib, create a tree, populate it, and then do some lookups
When you don't, you write an aweful foreach and crazy algorithm to compare entries
There are no comments on this comment yet.
For instance, sometimes I work with IP addresses, like "I have to grab the entry that matches this IP the most"
When you know the existence of radix trees, the problem is easy to solve : use a lib, create a tree, populate it, and then do some lookups
When you don't, you write an aweful foreach and crazy algorithm to compare entries