I have a question in bioinformatics. You can solve it by suffix tree structure.
Given a string S=S[1…n] and a number k, we want to find the smallest sub-string of S that occurs in S exactly k times, if it exists. How to solve this problem in O(n) time?