Ad
  • Default User Avatar
  • Custom User Avatar

    The Java initial solution still names the parameter as n instead of v. Should be changed to match the description.

  • Default User Avatar

    The rows of the array are columns of map, element number X of each array forms the rows of map

  • Default User Avatar

    The best post about this kata until now. Very clarifying and helped me solve it.
    Thanks.

  • Default User Avatar

    Done, thanks!

  • Default User Avatar

    I have to agree. I really liked this, but "n" is used to represent two different things in the description. That's potentially confusing.

  • Custom User Avatar

    To start off with,
    'right' => x += 1
    'down' => y += 1
    In terms of the minemap, it seems kind of counterintuitive visually, but if you're using python, you can check the location using minemap[x][y] to tell you whether you can move to that cell. I'm guessing that's why they set x and y as they did.
    If you want to think of it visually, consider the minemap as a list of vectors from left to right, and just transpose each vector in the minemap, now a movement to the 'right' takes you to the the same horizontal spot in the next vector (minemap[x+1][y]) and a movement 'down' takes you to the next entry in the same vector (minemap[x][y+1])

  • Custom User Avatar

    Can anyone give a codex on where is up down left right? I looked at all the solutions and maps, and it doesnt seem to make sense. Could I have gotten the coordinates wrong? Are the coordinates in cartesian coordinates?

  • Custom User Avatar

    Thanks! That is very helppful! :)

  • Custom User Avatar

    it means, if s==""(empty) return "", else return others

  • Default User Avatar

    What does return=="" ? "": do?

  • Default User Avatar

    This was a fun kata! But the n was a little confusing. I thought the n in the vertical scaling would be the same n in the number of strings and the length of string in the input. Perhaps you could change the n in the vertical scaling to a v?

  • Default User Avatar

    I suggest writing 2 sets of instructions. Like For Ruby: .... and For JavaScript: ...
    Its pretty unclear what is required of me in the exercise. Perhaps and input and output illustration may help.

  • Default User Avatar

    Ok. So, I did some research. It seems draft is the distance of the water line to the bottom of the ship. With crew on board, the draft is going to increase. What you want is that the draft due to the gold (only) to be 20. So the draft passed in the test is the measured draft. You need to calculate and see if this value minus the draft contributed by the crew is more than 20 (Since you want the draft contributed by the goods to be more than 20).

  • Default User Avatar

    Ok. So, I did some research. It seems draft is the distance of the water line to the bottom of the ship. With crew on board, the draft is going to increase. What you want is that the draft due to the gold (only) to be 20. So the draft passed in the test is the measured draft. You need to calculate and see if this value minus the draft contributed by the crew is more than 20 (Since you want the draft contributed by the goods to be more than 20).

  • Loading more items...