Back to Question
Find All Anagrams in a String
Question Explain
Given two strings $s$ and $p$, return an array of all the starting indices of $p$'s anagrams in $s$. The order of output does not matter.
Start Trying This Question Simulation
Click "Start Speaking" and answer the question naturally.