Permutation in String (Leetcode #567)
567. Permutation in String
Given two strings s1 and s2, return trueifs2contains a permutation ofs1, orfalseotherwise.
In other words, return true if one of s1's permutations is the substring of s2.
Example 1:
Input: s1 = "ab", s2 = "eidbaooo"
Output:...
earthcode.hashnode.dev2 min read