AlgoMaster Logo

Path With Minimum Effort

heights=[[1,2,2],[3,8,2],[5,3,5]]
0 / 341
algomaster.io
Step:Grid is 3 by 3. The answer is somewhere in [0, 1000000], so binary search it.