Programming method study notes - 1.2 The inclusion of strings

Topic description:

Given a long string a and a short string b. Excuse me, how to quickly determine whether all characters in short string b are in long string a? Please write the function bool StringContain(string &a,string &b) to implement this function. For simplicity, assume that the input string contains only uppercase English letters.


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324609908&siteId=291194637