阅读背景:

南阳理工OJ-5 Binary String Matching(子字符串问题)

来源:互联网 

Given two strings A and B, whose alphabet consist only ‘0’ and ‘1’. Your task is only to tell how many times does A appear as a substring of B? For example, the text string B is ‘1001110110’ while the pattern string A is ‘11’, you should output 3, because the pattern A appeared at the posit Given two strings A and B, whose alphabet



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: