The Sneaky Twins
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
- Seniority
- L4
Problem
Given strings s and p containing lowercase letters, return all starting indices in s where a substring of length len(p) is an anagram of p. Return the sorted list of indices.
Summary
They look different but they are the same inside.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.