Back to Questions

Find All Anagrams in a String

48.3K viewsAsked at Cisco
Medium

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

Practice answering orally or with text to get instant AI feedback.

Practice with This Question
Find All Anagrams in a String - Interview Question