void Resize(int size) { LinearProbingHashST <TKey, TValue> table = new LinearProbingHashST <TKey, TValue>(size); for (int i = 0; i < tableSize; i++) { if (Keys[i] != null) { table.Put(Keys[i], Values[i]); } } Keys = table.Keys; Values = table.Values; this.tableSize = size; }
public void Put(int i, double x) { st.Put(i, x); }