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

Method AllOne

AllOoneDataStructure.java:17–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 Node head;
16 Node tail;
17 public AllOne() {
18 head = new Node(0);
19 tail = new Node(0);
20 map = new HashMap<>();
21 head.next = tail;
22 tail.prev = head;
23 }
24
25 public void inc(String key) {
26 Node cur = head;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected