Regarding upper bound

if element is not present then allso upper bound and lower bound is showing wrong how is it possible

hello @ssmit_joshi could you please elaborate your doubt so that i can help you in the better way .

me esa bol raha hu ki agar element present na ho to bhi upper bound or lower bound dikha raha hai vo to galat hai na dikhana nai chaiye

hey @ssmit_joshi could you please share the code where you have implemented ?

hey what i have noticed is that if the element is not present then the result should be different but it is giving the result but that cant be done using stl so thats why we have to write its own stl .

which topics are most important in ds can u tell me

hello @ssmit_joshi you have taken the dsa course there al the topics will be covered .
you can see your course content .

here why we have taken lb-array in lowerband what that actually do pls tell

@ssmit_joshi this is because from the current pointers position we subtract the starting pointer of the array .

i am not able to understand thats why i have told u lb-array how it will give number i want to understand

still you havent understood ?

but how it subtract the starting pointer array if suppose it is at 5 , then we do 5-1 =4 then it is wrong na?

in array the indexing always start from the zero .
so,
5-0=5.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.