Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

priority queue

import java.util.PriorityQueue;
PriorityQueue<Integer> pq = new PriorityQueue<>();
pq.add();
pq.size();
pq.peek();//read
pq.poll();//read and remove
pq.remove();//remove
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #priority #queue
ADD COMMENT
Topic
Name
7+5 =