Check whether a positive integer is a perfect square without using sqrt
Company: Sap
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: easy
Interview Round: Other
Overview: Decide whether a positive integer up to 2^31 - 1 is the square of an integer without calling a square root function. The problem tests searching a sorted range of candidates, getting the loop boundaries right, and avoiding overflow when squaring large values.