Hacker News new | ask | show | jobs
by chillee 2957 days ago
I think the problem is easier viewed as just a standard graph traversal (although you can view graph traversals as DP...)

https://ideone.com/rU5COm