title: How can I find the occurence number of each suffix in a string?
body: <p>I want to find how many times each suffix of a string occurs in the <strong>original</strong> string in O(nlogn) or O(n) time.</p>
  
  <p>For example, for string aba, suffix a appears twice, ba appears once, aba appears once.</p>