Monday, October 25, 2010

Given a string S find all the distinct substrings

complexity and space

1 comment:

  1. Construct trie of all suffixes of string.
    Output number of nodes in trie.

    ReplyDelete