Skip to content

Instantly share code, notes, and snippets.

@yumed15
Last active March 19, 2024 14:22
Show Gist options
  • Save yumed15/fd3b7d62793eb150f827ce1a2639857c to your computer and use it in GitHub Desktop.
Save yumed15/fd3b7d62793eb150f827ce1a2639857c to your computer and use it in GitHub Desktop.
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