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
A very interesting problem!
18 is
9 + 9
, which is3^2 + 3^2
. It's possible with 2.for n = 18, we will have 16 + 1 + 1 = 3 perfect square numbers are needed, but in the test case, you have mentioned as 2, 2 perfect square to make 18 is not possible and also, so many test cases are like that. Can anyone rectify this or solve this.
//
For 18, you can get it from
9 + 9
(which is3^2 + 3^2
). Same for 19,9 + 9 + 1
(3^2 + 3^2 + 1^2
).This comment is hidden because it contains spoiler information about the solution
C fork (author gone)
.
python new test framework is required. updated in this fork
It's a very research based kata, but still fun, made me learn a thing or two.
This comment is hidden because it contains spoiler information about the solution
It's a little hard to solve with memoization, but with Lagrange it gets fun.
Really nice kata, nearly solved it a different way but couldnt get past overflows and timeouts. Gave me chance to dive into some math i was not entirely familiar with.
Same
109
for me!Loading more items...