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.
It's mentioned in the descriptions, so it's your fault ;-)
Thanks a lot. Needed exactly this after completing the kata!
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) ?
Some arrays have a space at the end. It made trouble with my sorting. I think its better to have same format
(like ("weight1weight2..weight_n")) in all the arrays.
Getting around memory problems was the difficult part for me. Each and every word in the discription was soo important. Once understood it, logic is not difficult.
u r right.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I'm new to programming. I don't know why... or.. Is this sarcasm g964? That the reason is too obvious but I made this post...?
Yep! I don't understand why, do you?
This comment is hidden because it contains spoiler information about the solution
Thanks for your post!
Learnt efficient ways of checking for prime numbers, thanks to this kata.. Thanks sensei..