Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: