This video is part of Strings section under GFG SDE Sheet.
In this video, we are given, a string S, find the length of the longest substring with all distinct characters.
Example :
Input: S = "geeksforgeeks"
Output: 7
Explanation: "eksforg" is the longest substring with all distinct characters.
Do check out:-
Article: https://www.geeksforgeeks.org/length-of-the-longest-substring-without-repeating-characters/
Problem: https://practice.geeksforgeeks.org/problems/longest-distinct-characters-in-string5848/1
SDE Sheet: https://www.geeksforgeeks.org/sde-sheet-a-complete-guide-for-sde-preparation/