posted 16 years ago
if you're trying to figure out where to start, then write down in words how you'd do this by hand.
What EXACTLY would you do if you were going to do it with paper an pencil?
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors