请在 下方输入 要搜索的题目:

If the length of the main string is n and the length of the substring is m, then the time complexity of the KMP algorithm is 。


A、O(m+n);
B、O(m);
C、O(n);
D、O(m*n)

发布时间:2025-08-02 06:09:35
推荐参考答案 ( 由 快搜搜题库 官方老师解答 )
联系客服
答案:O(m+n)
专业技术学习
专业技术学习
搜搜题库系统