8000 feat(priority queue): Add method of inserting element into the queue · HuboArch/algorithms-in-java@0bf5a20 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0bf5a20

Browse files
author
agribeau
committed
feat(priority queue): Add method of inserting element into the queue
1 parent 4c1c073 commit 0bf5a20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/data_structure/queue/PriorityQueue.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public void clear() {
7979
*/
8080
@Override
8181
public boolean offer(E e) {
82-
return false;
82+
return eMinHeap.offer(e);
8383
}
8484

8585
/**

0 commit comments

Comments
 (0)
0