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.
The idea is that no number from the interval (n/2, n) will ever be a divisor of n.
hi, can you please explain to me why i <= n/2; i somehow get that this is faster than going through every i until it reaches n. but i still don't grasp the idea.
the sample test that i can see is:
there are 5
i
s there, so the last one stays. You may have inadvertently modified the sample tests. I'm closing as this does not seem to be a kata issue, but feel free to come back if you have more informationin the C++ the result should be "von" not voin , or the string that is feed to the function should have an extra i.
Assert::That(doubles("vvvvvoiiiin"),Equals("voin"));
Your solution is prone to problems with accuracy of floating point numbers:
Your solution is buggy, it's not a kata issue.
This comment is hidden because it contains spoiler information about the solution