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.
This comment is hidden because it contains spoiler information about the solution
@docgunthrop I found a wrong random test:
'-2o' should equal '-2o+0'
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Comparing to other competitive programming platforms, I think codewars'katas lack complexity constraints (which are important in real life and in programming interviews).
Or is there problems with time and memory constraints but I didn't see any of them?
@Blind4Basics: any explanation why checking only one subsquare is enough ?
[JAVA]
It will be great if java.util.* becomes imported by default!
thanks a lot, makes sense now, and yeah quite clever :)
I also found this post that explains how to do the summation useful :
http://www.trans4mind.com/personal_development/mathematics/series/sumNaturalSquares.htm
can you please explain how you managed to get these mathematical expressions?
drunkenDoodling doesn't work for java !