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.
Thanks for explaining it I was wondering
THANKS!! I used it in problems, but didn't know how it fully worked!
He means that this is the most inefficient code for this exercise and if someone thinks that doing O(n**2) when it could be O(n) is best practices that means said person have no idea what constitutes as best practices
If you like a shirt, you shouldn't buy the shirt.
hahaha this made my day :)
:> just because of the effort :>
But sometimes, you will have to do things like this, for example Arduino :> So this would help you to train your mental strength.
BUT THIS IS NOT A GOOD PRACTICE !!!!!
This comment is hidden because it contains spoiler information about the solution
and certainly not DTSTTCPW
it's not.
Indeed, in this case time complexity was reduced to a google search and (If I remember well) 3 pages browsed. Copy-pasting in sublime and multi-search-replace.
5mins ?
;)
Maybe that's why this solution has more votes as "clever"? ;-)
Not really and not too often, but if it helps to get random tests next time;-)... Seems to me it helped:-)!
What do you think what it is;-)? It's special code for warriors like you who ask "what in the hell is this":-)... I give you a hint: no clean code, not DRY or KISS, not POLS, not YAGNI more CRAZY;-)...
@grensley
,I agree with you, it seems unnecessary to repeatedly create and sum slices when only one number is changing for each iteration.
Thanks for the comment, I hadn't looked at this solution in a few months!
This comment is hidden because it contains spoiler information about the solution