Q11medium
Given the string "abacaba", what is the value of Z[4] in the Z- array? (0-indexed, where Z[i] is the length of the longest substring starting at i which is also a prefix).
Topic-wise practice questions for Data Structures & Algorithms. Test your knowledge, check solutions on demand, and pace your preparation.