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'm late to this discussion, but you don't have to solve it quickly. These are meant to be practice exercises that teach you, and if you can knock it out fast then you haven't learned much. I did this over a period of several days, working on it an hour or so at a time.
Sure, agile development means working quickly. But that only works for the application of algorithms you already know or those that are trivial to engineer. Any real challenge will take real work, and real work is never fast.
Your first attempt doesn't consider arrays of different lengths, and also it always returns after just 1 iteration, because you have a
return
in a for loop.could you tell me some tests to do so my code might not work?
Thanks o7
This comment is hidden because it contains spoiler information about the solution
Yep. On 'attempt' there are more tests in "Test_comp" suite than you see in 'test'. Your code seems incorrect for repeating numbers, and I'm not sure why there is a loop at the end. Try printing out the vectors to console and debug from there.
Can someone tell me what the 5th hard test is? I'm about to go crazy: D
I declare this the most ridiculous solution!!! 🏆🏆🏆
You are overflowing the output area, probably with debug logging, possibly with error messages.
Remove all debug logging from your solution and try again.
If this issue persists, please open a new
Issue
and attach your code, properly marked up and spoilered.Closing.
Don't worry, It's completely normal. All of us been there.give this kata some rest, go solve other ones,come back some day later. a couple of days ago I got a sudden realization how to solve a 4 Kyi kata I first attempted over a year ago.
After hours of work, 6 articles, I give up. Come easy everyone. I will go to my room and cry
Your global var keep values between tests when the function is called more than once, make it local.
This comment is hidden because it contains spoiler information about the solution
Are you seriusly????
WHAT???