Sherlock and Squares - HackerRank.
NOTE: If you are copying my code then its an advice to you to copy it after downloading it to avoid any kind of compilation error its link is available at the bottom of the source code. Watson likes to challenge Sherlock's math ability. He will provide a starting and ending value describing a range of integers. Sherlock must determine the number of square integers within that range, inclusive of the endpoints. Note : A square integer is an integer which is the square of an integer, e.g. . For example, the range is and , inclusive. There are three square integers in the range: and . Function Description Complete the squares function in the editor below. It should return an integer representing the number of square integers in the inclusive range from to .