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.
CoffeeScript random tests sometimes include two or three zero arguments. That's not a valid triangle, and according to the description shouldn't be tested.
Done :)
Typos corrected, maybe you could try again? Thanks all for your posts about Crystal.
I can't neither :[. Seems that there's a typo in a method in the test cases.
Nice output in the tests.
This comment is hidden because it contains spoiler information about the solution
Thanks! Accepted.
Оспс за перевод :)
Вот невезет) Лог запусти да посмотри)
Great, thank you!
Вот рабочий код, для теста
{"Paraguay"=>"Paraguay,113942,149030,323310", "Uruguay"=>"Uruguay,24709,519674,16683", "China"=>"China,275550,728143,25494", "Iran"=>"Iran,428961,438063,9826", "UEA"=>"UEA,587597,590633,174208", "Korea-N"=>"Korea-N,112098,11703,25040", "Germany"=>"Germany,102520,237449,442660", "Iraq"=>"Iraq,360058,592029,664551", "Norway"=>"Norway,35149,159242,794559", "Finland"=>"Finland,177447,654318,288166", "USA"=>"USA,618781,25920,481752", "Korea_S"=>"Korea_S,556992,355449,1852"}
выдает правильный результат"USA-UEA-Korea_S-Iran-Iraq-China-Finland-Paraguay-Korea-N-Germany-Norway-Uruguay"
Но, автор перевода в тесткейсах намудрил, или вырубил поддержку split :)
Если так, то можно будет проверку по размеру из sort выкинуть, т.к. sort для string-чисел работает не как натуральный.
Как-то так :) Только нужно придумать что с значениями ключей сделать вида 140890,58174,117569. Быть может их в массив с числами. Твои идеи? :)
Нихера не поянл) Какое другое?
Pretty good indeed, although starting from a Ruby one, in this case alone, might have helped ;)
Loading more items...