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?
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 !