title: "1698: Number of Distinct Substrings in a String" tags: - String - Trie - RollingHash - SuffixArray - HashFunction