Ad
  • Custom User Avatar

    It'll return false, as it wouldn't be a valid tail: make sure that the second argument (tail), is the same as the last letter of the first argument (body)

  • Custom User Avatar

    Ruby
    Test Results:
    Basic Tests
    Simple Cases (3 Passed, 0 Failed)
    Random Tests
    More Complex Cases
    Testing for [10, 10, 5, 5, 10, 0, 0, 0, 1, 0, 5, 5, 10, 1, 0, 5, 10, 1, 0, 0, 10, 5, 10, 0, 0, 1] (1 Passed, 0 Failed)
    #<TypeError: nil can't be coerced into Fixnum>
    +' block in paul_rand_tests'
    each' paul_rand_tests'
    block (3 levels) in <main>' each'
    `block (2 levels) in '

    Do the More Complex Cases test for an array of integers? I thought it supposed to test for an array of strings like in basic tests. What I am missing? Thank you a lot

  • Custom User Avatar

    What if tail.length > 1?

  • Custom User Avatar

    I just submitted a Ruby solution and it worked just fine. You may need to make sure that you don't have anything blocking the scripts on that page. The Submit button should change to a "Submit Final" button after the first press. If that still doesn't work, post your code here and I will give it a try.

  • Custom User Avatar

    Cannot submit this kata in ruby. It has passed all tests, but when I click "submit" btn it just goes through the tests again. Thank you in advance.