after applying upper bound if we not apply the condition
after that then also it should work.
LIS-5 after upper bound condition
Hello @Saurabh2771999, yes if there is not any no. larger than the no. you are trying to find upper_bound for then there is no need to use this, in this case we can simply handle the current element as the last element of the sequence.
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.