what is the use of set1.remove(s[l]) ? set wont allow duplicates right
@techwithsaketh4 ай бұрын
we are not removing s[r] we are trying to remove all characters in the window till we remove s[r].By doing that we can create a new window and start checking the longest substring.