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.
Not broken, Visualize the description carefully
Can confirm
just the expected and acual that are swapped in the code. Yours is in "expected". ;)
Nested loops won't work.
indexOf
has a loop under the hood.Not an issue (resolved)
You should test the input.
This comment is hidden because it contains spoiler information about the solution
You need to find a O(1) solution. brute force should not pass ;-)
This comment is hidden because it contains spoiler information about the solution
I've separated the core issue out and filed a bug report. Turns out it's a CW platform bug that's independent of languages:
https://github.com/Codewars/codewars.com/issues/922
If we get some good luck @jhoffner should be able to fix this in a few days.
I've added a comment in the main chat :-) thank you for your suggestion :-)
Interesting problem ;-)
I copied this to other katas and submit. It can not pass the tests.
But in this kata it passed all tests.
Perhaps you can report an issue on gitter, let @jhoffner know.
Hi @skeletoo,
I copied your code and the tests into Visual Studio 2015 and it failed the tests with and without the
Console.Write(a[i]);
so, I'm not sure why it would pass the tests in here.I haven't got an explaination for you, sorry.
Maybe @jhoffner, @kazk, @smile67, @Voile, @SteffenVogel_79, @donaldsebleung or @gabbek could help?
Closed :)
Loading more items...