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.
9+9?
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.