字符串匹配

假设两个字符串中所含有的字符和个数都相同咱们就叫这两个字符串匹配,好比:abcda和adabc,因为出现的字符个数都是相同,只是顺序不一样,因此这两个字符串是匹配的。要求高效。ios #include "iostream" #include "string" using namespace std; const int N=256; bool ifMatch(string s1,string
相关文章
相关标签/搜索