Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

souvik-pl/HashMap_implementation_react

Repository files navigation

HashMap implementation in React

In this project, I have implemented an HashMap class which has the following functionalities -

  • void put(key: number, value: number) inserts a (key, value) pair into the HashMap. If the key already exists in the map, update the corresponding value.
  • number get(key: number) returns the value to which the specified key is mapped, or -1 if this map contains no mapping for the key.
  • void remove(key: number) removes the key and its corresponding value if the map contains the mapping for the key.

Installation

  • Pull this branch into your local system.
  • Make sure you have Node installed (preferrably Node v18.17.1).
  • Navigate to the project directory and run
    npm install
    
  • Once all the dependencies have been installed, run the following command to start the dev server.
    npm run dev
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /