Question: 4-) (30 pts) Write a function change(int heapl], int m, int value) that receives a minimum heap as array and integers k and value to
![4-) (30 pts) Write a function change(int heapl], int m, int](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f46348edbce_23266f46348b4a3a.jpg)
4-) (30 pts) Write a function change(int heapl], int m, int value) that receives a minimum heap as array and integers k and value to change the item at index m by value. Note that the heap may require to maintain heap order property. The number of elements in the heap is n. Dizi ile implemente edilmi bir minimum heap ve m, value tamsay deerleri alan change(int heap/), ini m, int value) fonksiyonu yaznz. Bu fonksiyon m indisindeki deeri value ile deitiriyor. Heap order zelliinin salanp salanmadna dikkat edin. Heap deki eleman says n dir
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
