Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
since it is 'False' firstlly
This comment is hidden because it contains spoiler information about the solution
Thanks!
Great Kata. Thank you!
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!
am I supposed to be handling negative numbers differently? I'm just taking the absolute value as of now..
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??
Can you explain to me how that is?
Show me the math on that test string to get a smallest common denominator of
524
please.Here is a wolfram link showing the Least Common Multiple for
138
,1310
, and40
(the denominators from the test case):https://www.wolframalpha.com/input/?i=least+common+denominator&rawformassumption=%7B%22F%22,+%22LCM%22,+%22commonnumbers%22%7D+-%3E%22(138,1310,40)%22&rawformassumption=%7B%22C%22,+%22least+common+denominator%22%7D+-%3E+%7B%22Calculator%22%7D
Did you see at the top of the page how many guys passed the Python kata?
This comment is hidden because it contains spoiler information about the solution
That's awesome!
This comment is hidden because it contains spoiler information about the solution
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) ?