Substring with Concatenation of All WordsHard

hash table string sliding window

Find every start index where s contains a concatenation of all the equal-length words in any order. Two approaches — watch a fixed-size window of word chunks match the target counts.

Press play to watch the algorithm run.
Metrics
Legend
How it works
0 / 0