Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to make priority queue of pairs in java

PriorityQueue<Pair<Integer,Integer> > pq=
                new PriorityQueue<Pair<Integer,Integer>>(n, Comparator.comparing(Pair::getKey));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #priority #queue #pairs #java
ADD COMMENT
Topic
Name
3+4 =