std::unordered_map In C++ | STL C++

  Рет қаралды 61,761

CppNuts

CppNuts

Күн бұрын

JOIN ME
-----
KZbin 🎬 / @cppnuts
Patreon 🚀 / cppnuts
COMPLETE PLAYLIST
------------
C++ Tutorial For Beginners: • Introduction To C++
STL (Standard Template Library): • STL In C++
ThreadIng In C++: • Multithreading In C++
Data Structures: • Data Structure
Algorithms: • Binary Search
Design Patterns: • Factory Design Pattern...
Smart Pointers: • Smart Pointer In C++
C++14: • Digit Separator In C++
C++17: • std string_view in C++...
C++ All Type Casts: • static_cast In C++
INTERVIEW PLAYLIST
------------
C++ Interview Q&A: • Structural Padding & P...
C++ Interview Q&A For Experienced: • How delete[] Knows How...
Linked List Interview Questions: • Find Kth Node From Bac...
BST Interview Questions: • Search Element In Bina...
Array Interview Questions: • Reverse An Array
String Interview Questions: • Check String Is Palind...
Bit Manipulation Questions: • Find Set Bit In Intege...
Binary Tree Interview Question: • Invert Binary Tree
Sorting Algorithms: • Bubble Sort
C++ MCQ: • Video
C MCQ: • What printf returns af...
C Interview Questions: • Designated Initializat...
QUICK SHORT VIDEOS
-------------
C++ Short : • C++ Short Videos
C Short : • Shorts C Programming MCQ
In this video we will learn about std::unordered_map in c++ STL.
NOTES:
0. std::unordered_map is an associative container that contains key-value pairs with unique keys.
1. Search, insertion, and removal have average constant-time complexity.
2. Internally, the elements are organised into buckets.
3. It uses hashing to insert elements into buckets.
4. This allows fast access to individual elements, because after computing the hash of the value it refers to
the exact bucket the element is placed into.
WHY UNORDERED_MAP
0. maintain a collection of uniqe {key:value} pairs with fast insertion and removal.
#dsa #algorithm #cpp #programming #tutorial #competitiveprogramming

Пікірлер: 56
@InariKorusaki
@InariKorusaki 4 жыл бұрын
First time I didn't have to 2x the playback speed. Thanks for keeping it quick and to the point!
@CppNuts
@CppNuts 4 жыл бұрын
You're welcome!! Even i do the same almost all the time for tutorials :D
@jimmykonings2127
@jimmykonings2127 4 жыл бұрын
Thanks for the STL tutorials! Looking forward for the videos on data structures!
@CppNuts
@CppNuts 4 жыл бұрын
Thanks Man.. Just recorded Tree Introduction, now i have to edit it.. :D
@srinu571
@srinu571 4 жыл бұрын
Please make a video as a last video of STL series and compare all the containers with their complexity for diff operations.. some table format .. like a cheat sheet ;)
@ronakpatil6081
@ronakpatil6081 3 жыл бұрын
i like your teaching style, you teach like mycodeschool channel fashion.😃
@CppNuts
@CppNuts 3 жыл бұрын
Thanks for liking dude.
@sachin_bhandari8470
@sachin_bhandari8470 4 жыл бұрын
thank you so much ,your videos are very helpful
@markusbuchholz3518
@markusbuchholz3518 4 жыл бұрын
As always perfect. Thanks! Do you have plan also to discuss about hash tables ? - I think one of the most beautiful data structure i CS
@CppNuts
@CppNuts 4 жыл бұрын
Thanks.. Yes my planning is to discuss basic DS and then go for advanced DS & Algo analysis..
@ayushchoubey1686
@ayushchoubey1686 4 жыл бұрын
I don't know who you are, but you are awesome!
@badassopenpolling
@badassopenpolling 3 жыл бұрын
In this video you should show how we can store customize key with the basics
@PuneetKumar-mz9is
@PuneetKumar-mz9is 4 жыл бұрын
you talked about some hash, Where is that in used in this ?
@vova-ri2qu
@vova-ri2qu 4 жыл бұрын
why are you said that we need calculate hash from value? we need key. not value for hash algorithm
@trojanhorse8278
@trojanhorse8278 Жыл бұрын
just a small doubt, in unordered map the hashing is applied on key right?
@CppNuts
@CppNuts Жыл бұрын
Yes
@teetanrobotics5363
@teetanrobotics5363 4 жыл бұрын
Rupesh is on fire.
@ayansatt1293
@ayansatt1293 2 жыл бұрын
What's the time complexity for searching a key in unordered map?
@coffeedude
@coffeedude 4 жыл бұрын
How do I delete a value from the unsorted map?
@mansokash2215
@mansokash2215 3 жыл бұрын
hi, these training codes are available to copy and implement while watching the video?
@CppNuts
@CppNuts 3 жыл бұрын
Check the channels about me page.
@lazizaakramova8602
@lazizaakramova8602 Жыл бұрын
Thank you!
@wahid4544
@wahid4544 Жыл бұрын
how do you write on screen? what app you use ?
@surajpokhriyal7761
@surajpokhriyal7761 2 жыл бұрын
why is it printing in reverse order ??
@PIYUSH-lz1zq
@PIYUSH-lz1zq Жыл бұрын
bro , to iterate over map we use .(dot) and while finding it returns an iterator .... right ??
@vvpChannel3112
@vvpChannel3112 4 жыл бұрын
Could you please create a series on COM component object model ?
@CppNuts
@CppNuts 4 жыл бұрын
I don't have knowledge on this. Sorry..
@markbenny4643
@markbenny4643 3 жыл бұрын
Can we change ordered map to unordered map
@s1mplelance964
@s1mplelance964 3 жыл бұрын
thank u so much
@CppNuts
@CppNuts 3 жыл бұрын
You are most welcome
@MOHITRANA-to7rf
@MOHITRANA-to7rf 2 жыл бұрын
umap[1] = 'c' here 1 is what index or element itself??
@samratpatel8060
@samratpatel8060 7 ай бұрын
1 is the key using key u can search in map
@karthickkumar1380
@karthickkumar1380 3 жыл бұрын
God You;
@CppNuts
@CppNuts 3 жыл бұрын
Thanks dude..
@shubhamrangar
@shubhamrangar 4 жыл бұрын
do you want to learn how to hack into system ?
@CppNuts
@CppNuts 4 жыл бұрын
Dude, i can understand the pain.. 😁 I don't know KZbin is giving same add since long time.. And i am frustrated too. But you make me laugh like anything..
@rohitnegi4651
@rohitnegi4651 4 жыл бұрын
Please share the code, it will help us later in revision
@slappkake2953
@slappkake2953 2 жыл бұрын
goated
@PIYUSH-lz1zq
@PIYUSH-lz1zq Жыл бұрын
bro , to iterate over map we use .(dot) and while finding it returns an iterator .... right ??
@bhupeshpattanaik7150
@bhupeshpattanaik7150 3 жыл бұрын
This is not c++14 ?
@theaartslife
@theaartslife 3 жыл бұрын
OH YEAHH
@CppNuts
@CppNuts 3 жыл бұрын
Thanks
@AndersonSilva-dg4mg
@AndersonSilva-dg4mg 4 жыл бұрын
recommend me books about C++ plz
@CppNuts
@CppNuts 4 жыл бұрын
I have never studied book for c++, i can't tell you..
@c_1947
@c_1947 4 жыл бұрын
What happened at 3:06
@shivendrayadav5962
@shivendrayadav5962 4 жыл бұрын
He is saying that if you dont care about order of keys then simply use unordered map rather than map as balancing the map wont have any advantage. thispointer.com/map-vs-unordered_map-when-to-choose-one-over-another/#:~:text=Time%20complexity%20for%20searching%20elements,searching%20is%20O(1).
@advay6449
@advay6449 2 жыл бұрын
Hello, i found this Video very helpful. Would it be possible for you to upload this "unordered_map.cpp" for us? I was needing to refer and kept having to come to the video. Thanks a lot :)
@CppNuts
@CppNuts 2 жыл бұрын
Please check channel description.
@advay6449
@advay6449 2 жыл бұрын
@@CppNuts oooh tyvm
@CppNuts
@CppNuts 2 жыл бұрын
You are welcome..
@useronuralp
@useronuralp 3 жыл бұрын
stop interrupting what you're explaining every 20 seconds by advertising your other videos
@CppNuts
@CppNuts 3 жыл бұрын
I won't stop sorry, if you have problem please don't watch. I don't force people to watch, but may be dependent videos so i might have said in video, and it is free content, if you can't listen this much you should never come back to KZbin ever for learning something.
@useronuralp
@useronuralp 3 жыл бұрын
@@CppNuts Sure. But still, if you have to mention a prerequisite video in your some other video like this one, do it once in the beginning and then follow a solid explanation path. You're literally disrespecting the viewer by repeating the same trivial dependency every 20 seconds. Not everyone that use this platform is 9.
@CppNuts
@CppNuts 3 жыл бұрын
Guys please, If you are frustrated then please look for the solution, don't comment on KZbin.
@crushed_oreos
@crushed_oreos 2 жыл бұрын
@@useronuralp shut up.
@genericnamethingy
@genericnamethingy 2 жыл бұрын
thank you!
std::unordered_multimap | STL C++
4:12
CppNuts
Рет қаралды 7 М.
Map In C++
13:54
CppNuts
Рет қаралды 137 М.
小丑和白天使的比试。#天使 #小丑 #超人不会飞
00:51
超人不会飞
Рет қаралды 43 МЛН
У ГОРДЕЯ ПОЖАР в ОФИСЕ!
01:01
Дима Гордей
Рет қаралды 8 МЛН
std::unordered_set In C++
11:50
CppNuts
Рет қаралды 33 М.
Why I’m Switching To Go in 2024
8:10
Awesome
Рет қаралды 57 М.
STL std::unordered_map (C++11)  | Modern Cpp Series Ep. 129
40:42
std::unordered_multiset In C++
12:33
CppNuts
Рет қаралды 8 М.
the TRUTH about C++ (is it worth your time?)
3:17
Low Level Learning
Рет қаралды 699 М.
Multimap In C++
16:22
CppNuts
Рет қаралды 37 М.
Multiset In C++
10:20
CppNuts
Рет қаралды 38 М.
小丑和白天使的比试。#天使 #小丑 #超人不会飞
00:51
超人不会飞
Рет қаралды 43 МЛН