Permutation in String
Given two stringss1ands2, write a function to return true ifs2contains the permutation ofs1. In other words, one of the first string's permutations is thesubstringof the second string.
Example 1:
Example 2:
分析
模板,注意是作为Min在while里被比较, 比较len(s1) == e-s?
Last updated
Was this helpful?