If you look closer, you ll see that i used rbegin not begin. This means reverse begin and would give the largest element in the set. So you are right about your thinking, but we cannot use end because it is actually the end of the set and doesnt contain any value
Your videos are really great. i feel lucky that I found your channel
So happy to hear that!
you are doing really great work.your explanation is just awesome.thanks alot.
13:21 Why begin? I thought the set was always sorted in ascending order so the median would be at the end of the leftset ...
yes set is sorted but you can't element from set using index you have to use iterator so begin iterator give the first element
If you look closer, you ll see that i used rbegin not begin. This means reverse begin and would give the largest element in the set. So you are right about your thinking, but we cannot use end because it is actually the end of the set and doesnt contain any value
Thanks a lot! Really clever
you are very welcome!
Thanks agian man!!
It helped a lot!
You are very welcome! My pleasure!
thank you!
you are very welcome!
Thank's man this is very usefull.
glad i could help!
How can we do it with ordered_set ?
why would we need an ordered_set?