Problem is tricky.....


  • 0

    At first I thought of picking min( dt(nut, tree) + dt(nut, Squirrel) ), then add 2*(nut, tree) for rest nuts. But turn out to be wrong. Figure out in a long time to know why it is wrong.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.