123. Valid Perfect Square

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