Given a double dimension matrix with all positive numbers how do I traverse the matrix from one corner to the other such that the sum of values along the path is maximum?
You can move only left, right, up or down i.e cannot move diagonally.
You cannot move backwards i.e you always have to move towards the other corner
Try a boustrophedonic traversal. I repeat the advice to comply with SO’s minimum posting length. Try a boustrophedonic traversal.