Skip to content

Commit 520e02f

Browse files
authored
Merge pull request #12 from advanced-frontend-lesson/master
fix: fix hash-table-linear-probing file get method
2 parents ddc6db2 + 48a99c6 commit 520e02f

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

+1-1
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)