Back to Question

Permutation in String

Question Explain

Given two strings $s1$ and $s2$, return true if $s2$ contains a permutation of $s1$, or false otherwise. Use a fixed-size Sliding Window and frequency maps.

Start Trying This Question Simulation

Click "Start Speaking" and answer the question naturally.