Given a positive integer num, write a function which returns True if num is a perfect square else False.
Note
Do not use any built-in library function such as sqrt.
Example
No.1
Input: 16
Output: true
No.2
Input: 14
Output: false
Code
1 | public boolean isPerfectSquare(int num) { |