I would have liked to show the difference between a set and multiset by adding e.g. {"Rupesh", 25} two or more times to the multiset example and showing that all copies were in the set, and that if you called count({"Rupesh", 25}) it would have returned a number greater than 1, whereas you will never get a number greater than one returned from the same function call on a set. Keep up the great work on STL && DS & Algorithms!
Hi Rupesh, All the videos are easy to understand. It would have been really helpful if you add the modifiers too for the respective container as a comment . It is jus a suggestion Thanks.
this is basically looping through each element in the multiset. By writing const we say we dont intend to modify the element e during this loop. and 'auto' basically autodetects the type of variable e is (which in this case is a multiset element).
if you mean inside a for(...) then it's what's called a range-based for. It says for each item in the container ("object" on the right hand side of the colon in your question) make (in this case) a read-only (const) reference to it that you can use in the loop. A typical example would be e.g.: struct S {string name; int score;}; vector vec{{"a", 75}, {"b", 23}, {"c", 66}}; for (const auto& x : v) { cout
why are we putting const before the body of the operator function???? The program wouldn't Compile without it. I mean It works without const in non-container scenario.
I don't know why you stop making vedio ,
To be honest , your channel is great
Thanks alot
Thanks man.
I don't get time, too much work now a days.
I will start soon..
I would have liked to show the difference between a set and multiset by adding e.g. {"Rupesh", 25} two or more times to the multiset example and showing that all copies were in the set, and that if you called count({"Rupesh", 25}) it would have returned a number greater than 1, whereas you will never get a number greater than one returned from the same function call on a set. Keep up the great work on STL && DS & Algorithms!
Clear and easy to follow and understand.
Thanks and keep it up!!!
Thanks for the comment..
You are a great teacher, thank you for your videos.
Hi Rupesh, All the videos are easy to understand. It would have been really helpful if you add the modifiers too for the respective container as a comment . It is jus a suggestion
Thanks.
concise ... So clearly explained!
Thanks..
your videos are just awesome and precise love it
Glad you like them!
It's great Channel
Every computer science aspirant must subscribe 😎😎😎
Thanks dude..
Hey can you please explain what lines 36 and 37 do? the bool operator < ?
좋은 자료 감사합니다>
Thanks Bhaiyya, your playlist made it too easy to understand.
Btw I like your Greaterrrrrrrrrrrrrrrrrr and shorterrrrrrrrrrrrr
Most welcome 😊
Can u suggest some other books to get more details???
In "bool operator < (const Person& rhs) const {return age
So we can't make change in the inner value of the class member. It's a good practice in coding.
www.geeksforgeeks.org/const-member-functions-c/
What is rhs btw?
Right hand side.
@@CppNuts thanks for replying but how out of nowhere it came from, I mena no previous declaration or something. Is it just the syntax?
Okay I think I got it. It's a parameter to the function.. right? Whose Boolean value is returned in that operator.
Are you working on the data structures and algorithms series?
Yes it is started!!
@@CppNuts thanks for the good content I will share this with my friends
@@CppNuts can you share the link for data structures and algorithms
You will get in on my channel.
sir pls make video on iterators plsss
God You;
Thanks dude..
Is it possible to use find function?
what is the mean of "rhs" in comparetor function?
Right hand side.
Can you pls tell me what is the best online resource for learning CPP in detail
My channel :D
Can I please get help on this question;
Find the number of 5-permutations of the set (∞a, ∞b, 3c)
bool operator > {const ......... Ye line me kon sa concept use hua hai aur ye kaise work kr rha h please explain again
Hey! Nice videos by the way. Just a small question. Which device are you using for that digital writing?
It's pen tablet.
HELP!!!!
What is the concept behind initializing the data members of the object without any constructor ?
if it is tree(Red Black Tree),then how it can have duplicate values?
What is the problem with having duplicate value in Red Black Tree..
bhayya do you have any c++ stl cheatsheet
No
whats your intro song
Don't remember it's been so long.
I didnt understand the line
for(const auto&e:multiset)
can you explain pls
this is basically looping through each element in the multiset. By writing const we say we dont intend to modify the element e during this loop. and 'auto' basically autodetects the type of variable e is (which in this case is a multiset element).
can anyone tell me what's the use of "const auto& object : object"
if you mean inside a for(...) then it's what's called a range-based for. It says for each item in the container ("object" on the right hand side of the colon in your question) make (in this case) a read-only (const) reference to it that you can use in the loop. A typical example would be e.g.:
struct S {string name; int score;};
vector vec{{"a", 75}, {"b", 23}, {"c", 66}};
for (const auto& x : v) {
cout
why are we putting const before the body of the operator function???? The program wouldn't Compile without it. I mean It works without const in non-container scenario.
and the Lecture's are awesome. ^_^
Why sets and multisets are called associative array? Associate to what?
u are very repeatitive in your playlist
thanks man, but the accent is so fake :)
Yaa i tried asking people is this fake mostly they say no, so i keep it this way.