Select your answers. Once selected, you cannot change them.
You are given two strings s
and p
. Return all the start indices of p
's anagrams in s
.
Example:
Input: s = "cbaebabacd", p = "abc"
Output: [0, 6]
Write your solution below: