Skip to content

Commit 48a99c6

Browse files
committed
fix: fix hash-table-linear-probing
1 parent ddc6db2 commit 48a99c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LearningJavaScriptDataStructuresandAlgorithmsThirdEdition_Code/src/js/data-structures/hash-table-linear-probing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default class HashTableLinearProbing {
4747
index++;
4848
}
4949
if (this.table[index] != null && this.table[index].key === key) {
50-
return this.table[position].value;
50+
return this.table[index].value;
5151
}
5252
}
5353
return undefined;

0 commit comments

Comments
 (0)