Here is the interview question prompt, presented for reference.
Given a string of characters, can you find the longest substring of the string that has no repeating characters?
An example is shown below:
lengthOfLongestSubstring("abracadabar");
// 4 because it is 'brac'
100000
O(n)
O(1)
In this challenge, we'll discuss a simple but efficient method for finding the longest substring with no repeating characters.
You can see the full challenge with visuals at this link.
Challenges • Asked about 6 years ago by Jake from AlgoDaily
This is the main discussion thread generated for Longest Substring With No Duplicate Characters.