practice #18

Closed
hitanshu wants to merge 10 commits from hitanshu/Princeton1:practice into practice
Showing only changes of commit 35e18497ee - Show all commits

View File

@ -5,8 +5,6 @@ package com.hithomelabs.princeton1.module8;
* * Heap does not have any instance variables, instance variables shall be housed by, the implementation using heaps, like priority queues and heap sort * * Heap does not have any instance variables, instance variables shall be housed by, the implementation using heaps, like priority queues and heap sort
*/ */
import com.hithomelabs.princeton1.module5.AbstractCustomSorts;
public class Heap{ public class Heap{
/* /*
@ -17,7 +15,7 @@ public class Heap{
} }
// * * Swim if element is not root, and parent is lesser than node // * * Swim if element is not root, and parent is lesser than node
public static <T extends Comparable<T>> void swim(T[] arr, int node, int N){ public static <T> void swim(T[] arr, int node, int N){
} }
private static <T> void exch(T[] arr, int i, int j){ private static <T> void exch(T[] arr, int i, int j){