Ad
  • Custom User Avatar

    this called sparring, spar to get better

  • Default User Avatar

    Wtf? Iv started js week ago, but im just simple dont understand which language thats writted by xd

  • Custom User Avatar

    Added some examples for these cases. (Some solutions are invalidated now)

    • First column can have a starting box
    • Block dude cannot climb first column if it has more than one boxes
    • Last column can have more than one boxes.
  • Default User Avatar
  • Custom User Avatar
    matrix = [
    [1, 1, 1, 0, 0, 0, 0, 0, 0]
    [1, 1, 1, 1, 0, 0, 0, 0, 0]
    [1, 1, 1, 1, 1, 0, 0, 0, 0]
    [1, 1, 1, 1, 1, 1, 1, 1, 1]
    ]
    It should work for random inputs too: False should equal True
    

    If the background is supposed to be infinite, this should very much be specified.

  • Default User Avatar

    hopefully less than 2000 years

  • Default User Avatar

    in many languages, Boolean values can be treated as integers, with true == 1 and false == 0

  • Default User Avatar

    Finally, I realize that if the last column is too high for Box Dude to get down, do we just leave him up there? Which is to say, the kata should decide somehow to describe Box Dude's "real world" travel options with absolute clarity especially in regards to the opening and closing columns / steps.

  • Default User Avatar

    This gives me the notion that the opening column could for sure be empty, so Box Dude doesn't have to step up, or it could have a 1 in the final row, and Box Dude could step up that. Beyond that, I would think any opening column that was not like the two cases I've mentioned should return False. Otherwise, how did Box Dude just suddenly start out on top of some boxes that are too high for him to have stepped onto?

  • Default User Avatar

    Random Tests are not guaranteed to have an empty opening column, such that my initial solution passed the kata without accounting for such a condition.

  • Default User Avatar

    fixed, thank you

  • Default User Avatar

    if there's an x in the string, then the input is invalid

    Given a string made up of letters a, b, and/or c

  • Custom User Avatar

    good, but if input string have a "x" char this solution doesnt worked.

  • Default User Avatar

    but then the title of the kata does not make any sense. we can either adapt the tests to the description and title, or the other way around. there are only 3 languages, so i would vote for the former

  • Custom User Avatar

    This is a wording with the kata itself, not the translation, as other languages have same test generation, so it should be ratio instead.

  • Loading more items...