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

Method getMinKey

AllOoneDataStructure.java:86–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84 }
85
86 public String getMinKey() {
87 if(head.next == tail){
88 return "";
89 }
90 return head.next.keys.iterator().next();
91 }
92 private void removeNode(Node cur){
93 Node nextNode = cur.next;
94 Node prevNode = cur.prev;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected