Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Not sure how to get past this...

    def descending_order(n)
    n.to_s.reverse.to_i
    end

    Test Passed: Value == 0
    Test Passed: Value == 1
    Test Passed: Value == 111
    Test Passed: Value == 51
    Expected: 2110, instead got: 1201

  • Custom User Avatar

    Initially, I felt like rating this an 8kyu however based on the descriptions I rated this a 7kyu although it seemed fairly easy to me at this point in my training. Keep in mind that I have done a bunch of the "Enumberable Magic" kata before once you get the concept down it all makes perfect sense.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    I'm not sure what I'm missing as my tests pass but when I submit it fails and it's not telling me why...

  • Custom User Avatar

    Hi, when I run the test it passes, but fails when I submit.

    I get the following error:

    Expected: 2110, instead got: 1201

    If I enter 0112 (my assumption based on what is expected) into IRB I get 74. Seems like leading zero is interprets the number as Octal. Do I need to account for this in my code?

    Thanks,