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

Method getMaxKey

AllOoneDataStructure.java:79–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77 }
78
79 public String getMaxKey() {
80 if(tail.prev == head){
81 return "";
82 }
83 return tail.prev.keys.iterator().next();
84 }
85
86 public String getMinKey() {
87 if(head.next == tail){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected