794

This one took me a looong time to figure out the solution, i used dynamic programming approach to modify the bfs traversal.

 

Leave a Reply

Your email address will not be published. Required fields are marked *