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.
Sign up free to see the answer and a step-by-step explanation.