Skip to content

Commit

Permalink
minimum or peek in heap
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankush1oo8 committed Mar 9, 2024
1 parent 0c2f895 commit f21adfe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Heap/Createheap.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ public void add(int data){
arr.set(par,temp);
}
}
public int peek(){
return arr.get(0);
}
}

}

0 comments on commit f21adfe

Please sign in to comment.