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

Class Node

AllOoneDataStructure.java:1–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1class Node {
2 Node next;
3 Node prev;
4 int freq;
5 HashSet<String> keys;
6 Node(int f){
7 next = null;
8 prev = null;
9 freq = f;
10 keys = new HashSet<>();
11 }
12}
13class AllOne {
14 HashMap<String, Node> map;
15 Node head;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected