Back to Questions

Permutation in String

58.2K viewsAsked at IBM
Medium

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

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

Practice with This Question
Permutation in String - Interview Question