Ad
  • Custom User Avatar

    @juliand665 -- ah! you're correct -- that makes sense.

  • Custom User Avatar

    There should really be more than one test case in the attempt to check for edge cases and prevent overfitting (and it's a kindness to have sample test cases pre-written :) )

  • Custom User Avatar

    Why are you doing join(" ").split(" ")?

    arr.join(" ").split(" ") == arr

  • Custom User Avatar

    I realize that these kata are written for multiple languages, but in Ruby this should really be written as a predicate:

    Array.same_structure_as?(other)

    since it only returns a boolean.

  • Custom User Avatar

    ugh. this is so elegant I hate my solution.

  • Custom User Avatar

    The instructions should be more clear, or the test cases should provide more output.

    The script I wrote fails on the third test, but there is inadequate information in the Instructions to know what additional circumstances I should account for.