示例#1
0
 public void Append(Node.Item newItem)
 {
     int h = hashFunction(newItem.key);
     Node current = T[h];
     Node newNode = new Node(newItem);
     newNode.link = T[h];
     T[h] = newNode;
 }
示例#2
0
 public Node(Item theItem)
 {
     item = theItem;
     link = null;
 }