leetle

Daily challenge for 2025-04-17

107. Find All Anagrams in a String

Write a function solve that finds all starting indices of anagrams of a pattern in a string.

Example:
Input: s="cbaebabacd", p="abc"
Output: [0,6]

Run this challenge interactively in Python or JavaScript when the app loads.