Question DSA-STR-0069
HardWhich data structure answers 'how many distinct substrings does a string have?' efficiently?
- A.
A stack
- B.
A suffix array with an LCP array, or a suffix automaton
- C.
A binary heap
- D.
A queue
Sign up free to see the answer and a step-by-step explanation.