Last active
March 19, 2024 14:22
-
-
Save yumed15/fd3b7d62793eb150f827ce1a2639857c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Map<Integer, ListNode> keyMap = new HashMap<>(); | |
class ListNode { | |
ListNode prev, next; | |
int val, key, freq; | |
ListNode() { | |
} | |
ListNode(int val, int key) { | |
this.val = val; | |
this.key = key; | |
this.freq = 1; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment