


The first line contains an integer ‘T’ denoting the number of test cases.
The first input line of each test case contains an integer ‘N’ denoting the input integer.
For each test case, return “true/Yes” if the given number is a perfect square otherwise return “false/No”.
You don't have to print the output, it has already been taken care of. Just implement the given function.
Try to do it without using built-in library functions like sqrt().
1 <= T <= 50
1 <= N <= 10^18
Time limit: 1 sec
The basic idea of this approach is to iterate through every possible integer that could be the square root of the given number. We can terminate the loop when we have found the square root or when the squared value is greater than the given number.
The steps are as follows:
The basic idea of this approach is to do a binary search to find the square root of the given number if it exists.
The steps are as follows:
First Digit One
Special Digit Numbers
Minimize Maximum Adjacent Distance
Sorted Doubly Linked List to Balanced BST
Minimized Maximum of Products Distributed to Any Store