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.
Welcom! Glad it played out well.
@curiouscoder, for some solutions, the time may vary strongly when different clues are provided. Maybe in the 'secret' tests there is a sequence of clues that causes an infinite loop or just takes a long time. Also, if you run the 'Attempt Solution' multiple times - are the resulting times the same?
Yep, I suspected that it might be considered a spoiler. I'd suggest you use some console printing and output the solving times yourself for comparison.
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
@psv, thank you for the explanation and for the C translation! It was the only language i could solve it in and to add a translation myself, which i really wanted to do.
Forgive me for not asking you directly about the test: i was too carried away with my own translation that just did not think. I'd like to disagree about the importance of a stable benchmark in random tests. Shouldn't it be like: 'Bring it on (as long as it's valid input)!' And if the solution has a sensitivity for input - great, that's where it surfaces.
Thank you, again
@JohanWiltink @gullymiles
[C# translation] (https://www.codewars.com/kumite/59a35e1e9f922b3e420000b0?sel=59a35e1e9f922b3e420000b0) added
This comment is hidden because it contains spoiler information about the solution
@FrankK
C++ translation added
Is the reason somthing i can fix?
edit: got it, sorry:) first time i'm publishing
C++ translation added
YES!!!
Thank you
std::extent instead of sizeof(a)/sizeof(a[0])
Nicely done