public class Solution { public bool IsPerfectSquare(int num) { , high = num; while (low <= high) { ; if (mid * mid == num) { return true; } else if (mid * mid < num) { low = (; } else { high = (; } } return false; } } https://leetcode.com/problems/v…