Ad
  • Default User Avatar

    Great Kata. Thank you!

  • Default User Avatar

    I did see how many people passed it but not sure what you mean by that. My question was in regards to the simplification of the fraction(numerator & denominator) prior to finding common denominators since the code I posted above does that. I thought I understood from some of the other discussions below that you had updated the kata to include simplified fractions but I guess not.

    Not trying to be a pain in the ****, I did learn a lot while troubleshooting this one so thanks for posting!

  • Default User Avatar

    am I supposed to be handling negative numbers differently? I'm just taking the absolute value as of now..

  • Default User Avatar

    didn't work when sides were 5, -2, 5: True should equal False

    Is my math wrong or does 5,2 and 5 make a triangle just fine. Test says it should be False??

  • Default User Avatar

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

  • Default User Avatar

    That's awesome!

  • Default User Avatar

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

  • Default User Avatar

    Thanks for trying to clarify the problem with the sort for same weights but I still don't think that's what the author meant.

    This is from the test window:
    Test.assert_equals(order_weight("2000 10003 1234000 44444444 9999 11 11 22 123"), "11 11 2000 10003 22 123 1234000 44444444 9999")

    You're right about the 11 11 2000 but then why aren't the next two numbers with same weight in ascending order (10003 22) ?