Ad
  • Default User Avatar

    I guess the kata would be way harder if you actually try to put some restrictions to it like having to figure out the solution given the equation at the first shot, it could be a nice idea for another evilized edition kata of this one.

  • Default User Avatar
  • Custom User Avatar

    I think it fails the premise of being a ladder in the first place. Either way, description should probably be updated to avoid discussions as this. There are more possible issues. What if a piece of a ladder looks like a normal piece (non rung), but is in fact a broken rung .. ambiguity all over the place

  • Default User Avatar
  • Default User Avatar

    This may not look like a ladder, but there are strict criteria. There is no pair of adjacent rungs with incorrect spacing between them, so spacing is correct.

  • Custom User Avatar
    1. The condition :

    Gap between rungs is too wide, should be less than 3.

    appears in one of the examples but not in the description.

    1. In the fourth fixed test, the error message is There is more than a 2 character width between rungs! but according to description, it should be :
      Gap between rungs is too wide, should be less than 3.
  • Default User Avatar

    Approved.

  • Custom User Avatar
  • Default User Avatar
  • Custom User Avatar
  • Custom User Avatar

    fuck, I misclicked... Wanted to approve to 7...

  • Custom User Avatar

    x + '1'*randint(...) (or maybe just replace a with this?)

    the a case has rather low interest (it's trailing 0s after valid ones), the case I suggest could spot some invalid regex solutions

  • Default User Avatar

    Added in description + a little change in random tests as per my understanding. :-/

  • Custom User Avatar

    ok, almost good but...

    issue:

    • the task still contains this hidden requierment: "a leading zero always leads to False" (to reword appropriately)

    suggestions:

    • could you tweak a bit more the random generator to build inputs like x + '1'*randint(...) (or maybe just replace a with this?)
    • you could build almost valid inputs suing x and replacing randomly one or maybe 2 characters into it
    • might be better to have 2 times x in the choices (to get more frequently positive outputs)
  • Default User Avatar

    added sample test cases + random tests will be generated as per your requirment now.

  • Loading more items...