public void Add(E e) { if (!list.Contains(e)) { list.AddFirst(e); } }
public void Add(Key key) { LinkedList1 <Key> list = hashtable[Hash(key)]; if (list.Contains(key)) { return; } else { list.AddFirst(key); N++; } }
public void Push(E e) { list.AddFirst(e); }