https://www.spoj.com/problems/SHUB1307/ Can anyone tell me this problem which i found on spoj I think it uses the concept of 2D grid minimum cost path but I can't come up with a solution.This problem seems to be a tougher optimization of the classic 2D grid minimum cost path . Please can any one help.