Ad
  • Default User Avatar

    What a great kata, from the beginning i was between 43 - 47(for a long time), then 51 for a while, at last...........Alhamdulillah!!
    Thanks seased!!

  • 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

    ...very limited set of instructions, which are executed in an endless loop.

    if DR is executed endlessly (i.e. DRDRDR...) it will fall into the hole at (5,5)
    if DRD is executed endlessly, it will leave the area on the down side.

  • 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!