Ad
  • Default User Avatar

    Either the coordinates are totally messed up, or I'm missing a huge point of perspective. (I think it's the former)

    In the sample test case, the last 3x3 mine_map is given as follows:

    Miner 0 0
    X X 0
    Exit 0 0

    where 0 means empty cell, X means block.

    The solution given is Down, Down, Right, Right, Up, Up.

    According to me, the solution should be this: Right, Right, Down, Down, Left, Left.

    Someone please make me understand how this makes sense.