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.
Or, instead of iterating through the squares of integers, you can iterate through the square roots of integers as I did in this Java Solution. It makes for simpler code since you just have to count the number of integers between the square roots of A and B
Sherlock and Squares
You are viewing a single comment's thread. Return to all comments →
Or, instead of iterating through the squares of integers, you can iterate through the square roots of integers as I did in this Java Solution. It makes for simpler code since you just have to count the number of integers between the square roots of A and B
From my HackerRank solutions.