Ad
  • Default User Avatar

    Ohhh, I totally misunderstood the assignment lol. I thought the first instruction would be executed until it hits a hole, then the next, and so on.

    Thank you!

  • Default User Avatar

    Hi all,

    How is it that DR is not a solution for the example test case #3? Which is as follows:

    FFHFHHF
    FFFFFFF
    HFFFFFH
    FFFFFHH
    HHFFFFF
    FFFFFHF
    FFHFHFF
    

    It'd start from (0, 0) and move down until it hits the H (hole) at (2, 0). So from (1, 0) it moves right till the end of the matrix because there are no holes in that row.

    For DR it says: "Your robot fell into a hole at x: 5 y: 5".

    I also don't get why would DRD be a valid solution.

    Is there someting I'm not getting from the assingment?

    Thanks!