Back to QuestionsPractice with This Question
Permutation in String
58.2K views•Asked 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.