0030. Substring with Concatenation of All Words
Sliding Window + Hash Map — find all starting indices of concatenated substrings
Preset Examples
s =
words =
Set
Step
Play
Reset
Speed:
5x
Offset:
-
Left:
-
Right:
-
Count:
-
Needed:
-
Window
Matched word
Excess word
Invalid word
Result match
String s
Target Frequency (wordFreq)
Current Window (seen)
Result indices:
[]
Log