Hint: build a Suffix tree, then find the highest node with at least 2 descendants.
26.3K views ·
View upvotes
· 1 of 4 answers
Something went wrong. Wait a moment and try again.
Hint: build a Suffix tree, then find the highest node with at least 2 descendants.