Course Solutions Uncategorized (Solved) : Help Java Project Want Add Method Called Deleteheap Take Heap Parameter Delete Data None L Q32518778 . . . .

(Solved) : Help Java Project Want Add Method Called Deleteheap Take Heap Parameter Delete Data None L Q32518778 . . . .

 

HELP IN JAVA:

In this project I want you to add a method called deleteHeap,which will take this heap as parameter and delete data from ituntil there is none left, storing the sorted data into an array,which is then passed back to main. Main will output this array,demonstrating that it is sorted.

What I have so far:

public class H10 {
public static void main(String[] args) {
int []A = {56,8,13,41,5,104,11,39,57,62,90,60};
int []Heap = CreateHeap(A);
  
deleteHeap(Heap);
  
printArray(Heap);
}
  
static void printArray(int arr[])
{
int n = arr.length;
for (int i=0; i<n; ++i)
System.out.print(arr[i]+” “);
System.out.println();
}

public static int[] CreateHeap(int[]A)
{
int[] Heap;
Heap = new int[12];
Heap[0] = A[0];
for(int i = 1; i < 12; i++){
Heap[i] = A[i];
int n =

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : Given Two Non Empty Linked Lists Representing Non Negative Integer Nodes List Contain Digi Q35835434 . . . .(Solved) : Given Two Non Empty Linked Lists Representing Non Negative Integer Nodes List Contain Digi Q35835434 . . . .

<p><img alt="You are given two non-empty linked lists, each representing a non-negative integer. The nodes of each list contain the digits" src="https://media.cheggcdn.com/media%2Fbe9%2Fbe9df3f3-0cc6-40b0-89c0-6f50930676a1%2FphpJAnH1J.png" style="height:279px;width:684px;" aria-describedby="d3f"/></p><p>java language<img alt="The first line of input