Upper Bound and Lower Bound in C++ STL | CP Course | EP 35

preview_player
Показать описание

I have discussed Upper Bound and Lower Bound functions present in C++ STL in detail in this video for arrays, vectors, maps and sets.

Question To practice :
Upper Bound and Lower Bound questions are those of binary search only, So try solve all the easy and some easy medium in below lists. Please note that not all questions present in below links can be solved using upper_bound and lower_bound but most of the easy ones can be.

Timestamps:
Explanation for Arrays : (0:00)
Explanation for vectors : (6:35)
Explanation for Sets and Maps : (7:41)
Bloopers : (12:53)

Be a part of our awesome Community. Join

You can follow me on below platforms for all the latest updates

Blog(Not frequently updated)

Hashtags
#upper_bound #lower_bound #stl #tutorial #competitivecoding
Рекомендации по теме
Комментарии
Автор

I just want to say, love you brother ♥

deepanshumishra
Автор

Allmost all other videos give knowledge but @luv gives knowledge with clarity and codes and very clean and simplified...

surajsawsakade
Автор

I had to use it in a question and searched for it but still could not understand it fully, but now it's clear

shakshi
Автор

ARRAY SHOULD BE SORTED :

LOWER BOUND : If number is present, it will return pointer to number. If the number is not present, it will return the pointer to number greater than that.
Eg : 2 5 7 8 10 12
If we say lower bound 8, it will return pointer to 8.
If we say lower found 9, as 9 is not present, it will return pointer to next number greater than 9, i.e. 10.

AK-lnko
Автор

Like pehle, fir video dekhna h❤️ Awesome sir..❤️ from IIITA.

kunalkaushik
Автор

Mast banata hai tu luv bhai
Maza hi aagya
❤❤❤❤❤❤❤, would keep watching.

PrateekBh-utwx
Автор

sir, badi mahanat se video banati hai ye sab bloopers dekh ke smaj me aata hai . 😌😌

amitasjofficial
Автор

Hats Off man to your explanations !! Much love man keep it up ! Bro tons of blessing for Yah !

malkeetsapien
Автор

what all you said at 8:36. just happened to me.
Yrr, hat's off.
NEver seen such an amazing teacher in my life.
lot's of love to LUV from Nainital.

sachinupreti
Автор

Arey bhaiya kal hi street light wali problem m kiya tha lower_bound(set) and tle aya but ab samaj aya kyu and ho gaya solve, great help😃

mohitahlawat
Автор

binge-watching your videos on 2x or 1.5x... 😂😂
to just see the part which I don't know...
btw love your videos... keep it up...

mjustboring
Автор

Thanks a lot helped me too solve many questions easily now! thanks really mean it

sleepypanda
Автор

what is good practice -> to introduce an integer in loop and taking its input, or introducing the ineger before loop and then taking its inputs furtherly???

in loop case dose it makes 5 integres memory for loop of 5 or its one integer memry only??

garvgoel
Автор

Ye part mera sabse weak hai... Many many thnx for this video❤️❤️❤️

sagnikmitra
Автор

Last seens always amazing 🔥🔥
love u bro & thanku for your videos 💖

bharatlakhera
Автор

Liked Videos and Loved Bloopers :) and thankyou so much bhaiiya .

whoisprafull
Автор

why do we need to sort the array to use upper and lower bound?

rohandas
Автор

Thank u bhaiya for such an amazing content

holly
Автор

Is it possible to find the lower or upper bound with the second value of vector of pair ?
if we can then we can resolve the issue of applying lower or upper bound in maps with non-key values .

shubhamgoswami
Автор

LUV is Most Recommended For Every Competitve Programmer

neelsoni