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 think this should be little bit faster for big vectors
Yes, sure. Always forget to add smiles to my sarcasm %)
Didn't check other solutions, but I bet that I had server issues.
This Kata proves (which is already proven) that C++ is faster than C#.
My code doesn't fit into 1200ms for C#, but perfectly fits in C++. And even not optimized pass for each number fits too.
Sad, but I don't know how to make my code faster for C#... Or maybe it is just server problems..
Thanks
C#. Random test failed
Source: 1,2
Mixed: 1
Result: 2
Expected: 0
Running in C#.
After running random tests:
Source: "!!!!!!!!!!A!!!xd!!!n!QR!aK!!k!NMy"
Expected: "!!!!!!!!!!AxdnQRaKkNMy"
But was: "!!!!!!!!!!A!!!xd!!!n!QR!aK!!k!NMy"
Where the hell is word separator here?
I am not seeing any spaces in source and no exclamation marks in the end of this big word, so solution should be same as source.
So, it is either wrong instructions or wrong tests.