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 40 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 building the Longest Prefix Suffix (LPS) array in the KMP algorithm for a pattern of length M?
A. O(M)
B. O(M^2)
C. O(M log M)
D. O(2^M)

Question Palette

Answered
Current
Not Attempted
Wrong

Quick Actions

Yukti Mascot