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.
How do you share files here? You can't. I have the one-page proof in PDF format. But I'm not 100% sure it's the proof I used two years ago. Infact, I don't know what I was thinking two years ago.
I forgot. Now I can't sleep until I know the answer. It's 20:50, Nice. Give me five minutes, I read this on my phone.
This comment is hidden because it contains spoiler information about the solution
Your results:
My results:
@MuaazK - that sounds like a good idea. I forked a solution using your suggestion.
If the array's length is 10,000,000 and there are only 5 odd numbers in the first 10 positions, the 'for' loop will put them back in their places and continue to scan the array for no reason.
you should check: "s < sortedOdd.length" and break when it is false.