字符串匹配

假設兩個字符串中所含有的字符和個數都相同咱們就叫這兩個字符串匹配,好比:abcda和adabc,因爲出現的字符個數都是相同,只是順序不一樣,因此這兩個字符串是匹配的。要求高效。ios #include "iostream" #include "string" using namespace std; const int N=256; bool ifMatch(string s1,string
相關文章
相關標籤/搜索