privatestaticclassNode { Set<String> set = newHashSet<>(); int cnt; Node next, prev;
publicNode(int cnt) { this.cnt = cnt; } } }
/** * Your AllOne object will be instantiated and called as such: * AllOne obj = new AllOne(); * obj.inc(key); * obj.dec(key); * String param_3 = obj.getMaxKey(); * String param_4 = obj.getMinKey(); */