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.
It might be a "Best Practices" but NOT "Clever" at all.
Noob question.
There are four times the loops, but the amount of character comparison stays the same. Is just looping through the string really this much less efficient than the comparison you make with each character, that it alone quadriples the workload?
3 now... I'm extremely suprised. Who are those people?
Print the input.
Yeah! Many thanks!
I changed all iterators to size_t and it started to work fine.
Potentially helpful links:
This comment is hidden because it contains spoiler information about the solution
Wtf... Best practice? Really?
This can be easily solved with O(n)... But, what i can see here? Best practice for O(4n)!?!?!?
Yes, there is solution in O(1) time, but this solution is O(n)
This can't be best practice no matter how you look at it.
Really cool one!