InterviewSolution
Saved Bookmarks
| 1. |
What is a time complexity for checking a string of length n is substring or not?(a) O (log n!)(b) O (n!)(c) O (n^2)(d) O (n)My question is taken from Suffix Tree in chapter Trie of Data Structures & Algorithms II have been asked this question by my college professor while I was bunking the class. |
|
Answer» Correct OPTION is (d) O (N) |
|