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 correspondingvalue.number get(key: number)returns thevalueto which the specifiedkeyis mapped, or-1if this map contains no mapping for thekey.void remove(key: number)removes thekeyand its correspondingvalueif the map contains the mapping for thekey.
- 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