We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
i don't really know, for example, we have 800, the square root is 28.3, we can take int 28, it means each number square higher than 28 results higher than 800, so, we can only take numbers <28, i don't think that we can find 561 combinations of unique square numbers between 1 and 28.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Join us
Create a HackerRank account
Be part of a 26 million-strong community of developers
Please signup or login in order to view this challenge
The Power Sum
You are viewing a single comment's thread. Return to all comments →
I think this is the best solution.
i don't really know, for example, we have 800, the square root is 28.3, we can take int 28, it means each number square higher than 28 results higher than 800, so, we can only take numbers <28, i don't think that we can find 561 combinations of unique square numbers between 1 and 28.