public V Remove(K key) { BSTMapNode <K, V> node = GetNode(root, key); if (node is not null) { root = Remove(root, key); return(node.Value); } return(default);
public V Get(K key) { BSTMapNode <K, V> node = GetNode(root, key); return(node is null ? default : node.Value); }
public void Add(K key, V value) { root = Add(root, key, value); }