Розмір відео: 1280 X 720853 X 480640 X 360
Показувати елементи керування програвачем
Автоматичне відтворення
Автоповтор
Thank you for help, you have explained in a very simple way with worst to best approach
welcome :)
DONE AND DUSTED !
great :)
Sir, upper bound will return the next highest element so if you apply for zero then it should give 10 not 20 please tell , this point is not clear .
Hi Krish, we will be storing the end value as key and start value as value, so upper bound of 0 will be 20. When we check our condition , i,e start=0, end = 5 and map has mp[20]=10 now upper_bound(start) is 20 and end
@@sathishkumar-dc9ce Mean the upper bound will be key in every comparison then we will compare the value i.e start point with the end.
yes, because an interval can only start after any interval ends (0 or more)
Thank you for help, you have explained in a very simple way with worst to best approach
welcome :)
DONE AND DUSTED !
great :)
Sir, upper bound will return the next highest element so if you apply for zero then it should give 10 not 20 please tell , this point is not clear .
Hi Krish, we will be storing the end value as key and start value as value, so upper bound of 0 will be 20. When we check our condition , i,e start=0, end = 5 and map has mp[20]=10 now upper_bound(start) is 20 and end
@@sathishkumar-dc9ce Mean the upper bound will be key in every comparison then we will compare the value i.e start point with the end.
yes, because an interval can only start after any interval ends (0 or more)