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.
I know the test cases don't cover it, but what if at least one of them was 0? ;-)
There is a description conflict.
That's really clever!
wait, I think I know. it's adding the numbers, then sorting them so 2 + 2 > 7 so false, etc. ?
Can someone explain what is going on? A little confused on this solution
It could work as long as you call it with exactly 3 parameters. The problem is when you call it with different number of parameters. In those case (a, b, c) version will raise an ArgumentError because the function requiers exactly 3 parameter. Your soultion will raise nil related errors if you call it less then 3 parameters, which is misleading, but it will NOT raise any error in the case of more then 3 parameters. And this latter means it may hide a coding error.
Thank you for the reminder~
Next time please mark the comment as spoilers if you're posting solution code ;-)
This comment is hidden because it contains spoiler information about the solution
Well... with your latest change the same code that I had just worked fine.
Thanks!
I added some debug output to the reuby code, please try again.
Also, 4 people already solved it, so it should be working...
Done Ruby Translation
Ruby
Language?
I've included an explanation of array lengths tested. I hope it's helpfull.
Loading more items...