Skip to content

07-HashCollisionLinearProbing.js #13

@chung2014

Description

@chung2014

In line 49, you are checking for a position that contains an element, so I guess you would like to break the while loop if there is no value for that position
so

while (table[index] === undefined || table[index].key !== key)

should be

while (table[index] !== undefined || table[index].key !== key)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions