Example #1
0
 public void Add(E e)
 {
     if (!list.Contains(e))
     {
         list.AddFirst(e);
     }
 }
Example #2
0
        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);
 }