String 10: Longest Distinct characters in a string | Must Do Coding Questions | GeeksForGeeks

preview_player
Показать описание
This video contains Must Do Coding Questions for Companies like Amazon, Microsoft, Adobe, …
from geeksforgeeks platform.

website link:

Topics covered in this video series are:
1.Arrays
2.String
3.Linked List
4.Stack and Queue
5.Tree and BST
6.Heap
7.Recursion
8.Hashing
9.Graph
10.Greedy
11.Dynamic Programming
12.Divide and Conquer
13.Backtracking
14.Bit Magic

String:
10. Longest distinct characters in a string:
Given a string S, find 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.

Code Link:

Complete Playlist:

Intro Music :
Рекомендации по теме
Комментарии
Автор

Have a look at the syntax of erase() function that might help you to clear your doubts.

krishnateaches