Beispiel #1
0
 public void checkFillFactor()
 {
     if (_members / _count > _fillFactor)
     {
         int newCount = _count * 2;
         HashTableNode <string, V>[] newArr = new HashTableNode <string, V> [newCount];
         _arr.CopyTo(newArr, 0);
     }
 }
Beispiel #2
0
 public HashTable(int n)
 {
     HashTableNode <string, V>[] _arr = new HashTableNode <string, V> [n];
     _count = n;
 }