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

Method compareTo

LongestHappyString.java:53–55  ·  view source on GitHub ↗
(Pair that)

Source from the content-addressed store, hash-verified

51 this.ch = ch;
52 }
53 public int compareTo(Pair that){
54 return that.count - this.count; // dec order of count
55 }
56}

Callers 1

compareMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected