XaiJu
Aditya Verma
Aditya Verma

patreon


Longest Substring With Without Repeating Characters

It's 5:04 am and I have just finished editing the video, It will be uploaded by tomorrow evening.

Thanks all for watching !!

Comments

Code is incorrect for this. ``` else if(mp.size()>k) { while(mp.size()>k) { mp[s[i]]--; if(mp[s[i]]==0) { mp.erase(s[i]); } i++; } j++; } ``` It should be mp.size() < j-i+1. No of distinct characters should be less than window size.

Tanushree Bhattacharji

can somebody send me the java code for this?

Vijaya Srivastava


More Creators