LeetCode-Swift
LeetCode-Swift copied to clipboard
[Array] Use Binary search to check whether num is perfect squares
Use Binary search is more efficient in both time complexity and space complexity.