Longest Substring With Without Repeating Characters
Added 2020-12-27 23:36:28 +0000 UTCIt'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
2022-10-13 10:13:51 +0000 UTCcan somebody send me the java code for this?
Vijaya Srivastava
2022-04-02 14:03:26 +0000 UTC