@awice Why is the answer for below data 15?
[[2,3, 4],[7,1,6],[5,9,8]].
Shouldn't it be 11?
Path taken,
2-3-4-1-5-1-6-1-7-1-8-9
Totally 11 steps.
Am i missing something?
@sharathnarayan Wrong forum topic, and the answer is (perhaps?) because the path is 4-directional.