Change in the input array/list itself. You don't need to return or print the elements.
The first line contains an integer 't' which denotes the number of test cases or queries to be run. Then the test cases follow.
The first line of each test case or query contains an integer 'N' representing the size of the array/list.
The second line contains 'N' single space separated integers representing the elements in the array/list which are in the form of a min-heap.
For each test case or query, If the built max-heap satisfies the max-heap condition, print 'true'. Otherwise, print 'false'(without quotes).
Output for every test case will be printed in a separate line.
You don't have to print anything, it has already been taken care. Build the max-heap in the given array/list itself or in-place
1 <= t <= 100
0 <= N <= 10^5
Time Limit: 1 sec
Missing Number
Longest Subarray With Zero Sum
Merge Two Sorted Arrays Without Extra Space
Ninja And The Strictly Increasing Array
Negative To The End