Longest Substring with Distinct Characters
Problem Statement
Given a string, find the length of the longest substring, which has all distinct characters.
Example:
Input: String="aabccbb"
Output: 3
Explanation: The longest substring with distinct characters is "abc".
Solution
const func = (st...
jimboslice.hashnode.dev1 min read