Problems / Sliding Window / Permutation in String
#18 Medium Time O(n) Space O(1) Animated

Permutation in String

Check if s1's permutation is a substring of s2.

LeetCode ↗
Approach: Sliding Window + Hash Map
Click play to start
Step 0 / 0
Press play to start the visualization.

Steps