help please
Posted: Sun Jul 03, 2022 11:24 am
help please
5 C app Extract Max Problem Statement Write Ce a fandion tractand that take an input ama hep o presented an an integer atay and the size of the ane se The union delete the masman in the mas heap and returns the new mus heap anay aftern Constraints *SURAFT The arreped the satisfies the mac heap con Sample Input Sample Output 87 Explanation Input Liectes the number of sime of the meas heap that is passed into Output Out the man heap er d Problem Attributes sin the benedet ao finition Solution 3 T PA stale sestr Use trans Projects - // the final here from 2 1 Lear 0440 Subve
Extract Max Problem Statement Write C++ code for a function, extrocax that takes as input a max heap, air represented as an integer array and the size of the amay, size. The function deletes the maximum element in the max heap and returns the new max heap array after deletion Constraints • A-1 The amay passed into the extractMax satisfies the max heap constraints Sample Input 987 Sample Output Explanation Input Line 1 denotes the number of elements, sine in the heap. Line 2 denotes the contents of the max heep that is passed into extractMax) function Output Output is the max heap aher deletion Solution Sdn 3 981 Modules int extractMas(int w, int size) ( Comput code here //sain rints the final heap array from to six-2 'teed to print the array but instead return // you return arr Projects Submission Lewen Schedule 04±0 Code Submit
5 C app Extract Max Problem Statement Write Ce a fandion tractand that take an input ama hep o presented an an integer atay and the size of the ane se The union delete the masman in the mas heap and returns the new mus heap anay aftern Constraints *SURAFT The arreped the satisfies the mac heap con Sample Input Sample Output 87 Explanation Input Liectes the number of sime of the meas heap that is passed into Output Out the man heap er d Problem Attributes sin the benedet ao finition Solution 3 T PA stale sestr Use trans Projects - // the final here from 2 1 Lear 0440 Subve
Extract Max Problem Statement Write C++ code for a function, extrocax that takes as input a max heap, air represented as an integer array and the size of the amay, size. The function deletes the maximum element in the max heap and returns the new max heap array after deletion Constraints • A-1 The amay passed into the extractMax satisfies the max heap constraints Sample Input 987 Sample Output Explanation Input Line 1 denotes the number of elements, sine in the heap. Line 2 denotes the contents of the max heep that is passed into extractMax) function Output Output is the max heap aher deletion Solution Sdn 3 981 Modules int extractMas(int w, int size) ( Comput code here //sain rints the final heap array from to six-2 'teed to print the array but instead return // you return arr Projects Submission Lewen Schedule 04±0 Code Submit