Determine whether the number
num is a perfect square.Example 1
Input: num = 16
Output: true
Explanation: 16 = 4² — a perfect square.
Output: true
Explanation: 16 = 4² — a perfect square.
Example 2
Input: num = 14
Output: false
Explanation: 14 is not a perfect square.
Output: false
Explanation: 14 is not a perfect square.