1.

What is time complexity to check if a string(length S1) is a substring of another string(length S2) stored in a Directed Acyclic Word Graph, given S2 is greater than S1?

A. O(S1)
B. O(S2)
C. O(S1+S2)
D. O(1)
Answer» B. O(S2)


Discussion

No Comment Found