public void Remove(Key key) { LinkedListThree <Key, Value> lst = hashtable[Hash(key)]; if (lst.Contains(key)) { lst.RemoveEle(key); N--; } }
public void Add(Key key, Value value) { LinkedListThree <Key, Value> lst = hashtable[Hash(key)]; if (lst.Contains(key)) { lst.Set(key, value); } else { lst.Add(key, value); N++; } }
public bool ContainsKey(Key key) { return(list.Contains(key)); }
public bool Contains(Key key) { LinkedListThree <Key, Value> lst = hashtable[Hash(key)]; return(lst.Contains(key)); }