You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: SHORT_NOTES_on_STL.md
+19-1Lines changed: 19 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,5 +2,23 @@
2
2
3
3
## map and unordered_map
4
4
map is a very important STL used in competitive programming. Map is implemented using Red-Black Tree. Maps store values in the form of a combination of a key value and a mapped value.
5
+
Declaration:
6
+
map<int,int>mm ;
7
+
unordered_map<int,int>mm ;
5
8
6
-
### find()
9
+
### mm.find(k)
10
+
Returns an iterator of the specified key value if it's been found in the map or returns an iterator to mm.end() if element not found.
0 commit comments