MCPcopy Create free account
hub / github.com/Tiwarishashwat/InterviewCodes / compare

Method compare

MinimumCosttoConvertStringI.java:9–14  ·  view source on GitHub ↗
(long a[], long b[])

Source from the content-addressed store, hash-verified

7 dist[S] = 0;
8 PriorityQueue<long[]> pq = new PriorityQueue<>(new Comparator<long[]>(){
9 public int compare(long a[], long b[]){
10 if(a[1]<=b[1]){
11 return -1;
12 }
13 return 1;
14 }
15 });
16 pq.offer(new long[] {S,0});
17

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected