Given a positive integer num, write a function which returns True if num is a perfect square else False.
Click here
Use binary search between 1 and x. Use stop condition if mid * mid = x. O(log n) time, O(1) space.Run make to run python and Swift files.