Home MCQs Data Structures & Algorithms Strings
Back to Topics
PRACTICE • LEARN • GROW

Strings MCQs

Solve topic-wise placement questions and improve your skills.

Strings Progress
0 of 25 completed
0% Topic Track
You are viewing MCQs in preview mode. Log in to select options, submit answers, and track your progress.
Log In to Answer
1
What is the time complexity of the KMP algorithm for pattern searching in a string of length N and pattern of length M?
A. O(N * M)
B. O(N + M)
C. O(N log M)
D. O(M log N)

Question Palette

Answered
Current
Not Attempted
Wrong

Quick Actions

Discuss Question