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
A、O(m+n);
B、O(m);
C、O(n);
D、O(m*n)