Check Max-Heap Send Feedback Given an array of integers, check whether it represents max-heap or not. Return true or false. Input Format : Line 1 : An integer N i.e. size of the array Line 2 : N integers which are elements of the array, separated by spaces Output Format : true if it represents max-heap and false if it is not a max-heap Constraints : 1 <= N <= 10^5 1 <= Ai <= 10^5
-
Notifications
You must be signed in to change notification settings - Fork 0
rahuljha12527/CheckMaxHeap
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published