Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is the hash-table doesn't implement by an array? #209

Open
JackZong opened this issue Aug 19, 2022 · 0 comments
Open

Why is the hash-table doesn't implement by an array? #209

JackZong opened this issue Aug 19, 2022 · 0 comments

Comments

@JackZong
Copy link
Contributor

Hi team,

I saw that the hash-table is implemented by an Object {} not the Array [], is this by design? It seems that the Array type data structure can provide a better search efficiency.

image

file at:
https://github.com/loiane/javascript-datastructures-algorithms/blob/7d33c7ccf5185144e9ab561f152cda841ab86f22/src/ts/data-structures/hash-table.ts

Bests,
Jackson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant