You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the implementation of the get function, the returned value is not the correct index found by the while loop, instead of the original index.
As a result, the first result will be returned instead of the expected one.
https://github.com/loiane/javascript-datastructures-algorithms/blob/main/src/ts/data-structures/hash-table-linear-probing.ts#L45-L61
In the implementation of the
get
function, the returned value is not the correct index found by the while loop, instead of the original index.As a result, the first result will be returned instead of the expected one.
As follows
So I submitted a PR about fixing this problem. #207
The text was updated successfully, but these errors were encountered: