Maximum length unique char substring

at expansion step why is it given
if(last occ=-1 || i-curr_len>last occ)
instead of
(i-curr_len>=last occ)
??

hello @Ambuj-Singh-514796906079795
please share the complete code that u r referring

from the video lecture of maximum length unique char substring

sorry for late response, the video content was not accessible to me
yeah equility sign should be there.

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.