Castle on the Grid

  • + 1 comment

    This problm's got issues. Let's take the first test case:

    [s X .] [. X .] [g . .]

    to go from Start to Goal, there are two moves (0,0)->(0,1) and (0,1)->(0,2). But the expected answer is 3. How TF are they counting to get to 3? Can somebody please explain to me? Or, at least, share whatever the author was smoking?