Base condition s<=e

why we take base cond as s<=e only s=e can do the same work

yes, you are absolutely right. s==e will also work .
usually to avoid any mishappening, we are used to write more general conditions. one of such condition is start <= end…
but in this case s==e will work absolutely fine.

thanks

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.