public bool exist(sehir k) { int index = hash_func(k.isim); bool exist = false; for (int i = index; i < table.Length; i++) { if (table[i].Equals(k)) { exist = true; } } return(exist); }
public void add(sehir k) { int index = hash_func(k.isim); if (table[index] == null) { table[index] = k; } else { while (table[index] != null) { index += 1; } table[index] = k; } }
public void Remove(sehir s) { remove(s.isim); }