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.
inneficient, excessive memory allocations
This comment is hidden because it contains spoiler information about the solution
if i used reserve(n) would it fix that?
nice try
i can't this very very geinus
While I belive this is a very clever answer, doesn't this kind of defeat the purpose of solving the problem?
string isn't c++ built in type
did you forget opening brackets in your if statement?
This comment is hidden because it contains spoiler information about the solution
Sorry I do not undertand that, could u plz explain
This comment is hidden because it contains spoiler information about the solution
smart!
smart! 0.0
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.
Loading more items...