假設陣列長度是 n,可以下列求餘數(mod)方式計算鍵的索引值。 index = hashcode % n 8-2-1 ... 此陣列內含 5 個元素空間,如下所示:假設現在想將 Refrigerator 存入陣列, ...
確定! 回上一頁