use std::collections::HashMap; use std::hash::Hash; const NIL: usize = usize::MAX; struct Node<K, V> {
import functools import threading import time from collections import OrderedDict