myesn

myEsn2E9

hi
github

Find the maximum non-repeating substring in a string (calculate the length and the longest substring).

Problem#

Given a string s, find the length of the longest substring without repeating characters.

Solution 1: Sliding Window + Hash Table#

image

Find the maximum length#

Find the maximum continuous substring#

(To be learned) Solution 2: Dynamic Programming + Hash Table#

(See K's diagram for explanation)

Reference:#

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.