Ad
  • Custom User Avatar

    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.