单项选择题

What's the time complexity for searching a pattern of size m in a text string of size n using KMP?
在长度为n的文本串中用KMP算法查找长度为m的模式串,时间复杂度为

A.O(mn)
B.O(1)
C.O(m)
D.O(m+n)
微信扫码免费搜题