Comments (1)
Design a HashMap without using any built-in hash table libraries.
Implement the MyHashMap class:
MyHashMap() initializes the object with an empty map.
void put(int key, int value) inserts a (key, value) pair into the HashMap. If the key already exists in the map, update the corresponding value.
int get(int key) returns the value to which the specified key is mapped, or -1 if this map contains no mapping for the key.
void remove(key) removes the key and its corresponding value if the map contains the mapping for the key.
from hacktoberfest.
Related Issues (20)
- Kruskal’s Algorithm HOT 3
- Longest Common Subsequence HOT 3
- Clone Linked List Program having two pointers random and next. HOT 1
- C++ program on matrix multiplication HOT 8
- C++ program for BMI Calculation HOT 7
- C program for conversion of infix to postfix (stacks) HOT 4
- Adding Go programming language
- LeetCode 75 Solutions HOT 1
- Mandelbrot Set in Python
- code for bubble sort in java HOT 5
- Creation of Single Linked List HOT 10
- Quick Sort using java HOT 1
- Transpose of matrix using java HOT 1
- Adding a CPP code for double linked list
- 4 sum problem HOT 2
- Reversing a 3-digit number HOT 3
- Merge two sorted arrays Java
- C++ code Traversing Through B.Tree
- Dynamic Arrays, Linked List, Binary Tree, Queue, Trie Node Implementation In C
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hacktoberfest.