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.
Solved for two test cases... Got this weird error I've never seen before. Any tips?
This feels like a 5, not a 6ku
Thanks for the reply @Chrono79. I reread the setup and I can't determine what to return if no winning pairs are found. I tried returning nil if winning_pairs == [], but no luck.
Can somone explain this error code to me? Passed all standard tests, but I can't decipher what is triggering this error:
sweet! solved. thanks :)
The definition of bouncy is not making sense to me. Can someone articulate it differently and see if it clicks. I can't see the rule that's determining the subarrays. Here is the closest I can get at what the definition means:
FOR A GIVEN ELEMENT:
# it MUST be HIGHER than one neighbor AND lower than another neighbor
please help.
setup should specify whether frog can jump out of either side of the array or not.
The way the tests are written for this kata make it hard to debug.
Why is this a 5? I've done way harder 6s
Can someone explain why expected return on the following input is ""?
"Random Tests"
["773256782953519667796", 7]
The string breaks into even chunks of 7, why would it want "" for a return?
This worked! Thank you! (I tried this same approach on another kata, and the output was a gigantic block of text that caused a timeout, but for this kata it worked perfectly to help me debug, thanks!)
Two random tests failed, the output that they expected was the output that my function returned in my IDE. Upon attempting again without changing the code, only one random test failed. Same situation. Expected false, said it got true, but testing the code in my IDE function returned the expected false.
Thank you for your reply, and I'm sorry for being so ignorant here, but do you mean copy the whole STDERR into the code and print it?
This comment is hidden because it contains spoiler information about the solution
Hello, can someone please tell me how to see the content of the random test that failed. It just says failed a random test, expected 36, got 12, but I cannot see what the test parameter was.
Loading more items...