Posts with tag 'trie'

Trie

1 minute read

Implement a trie data structure with the following methods:

Distinct Substrings

less than 1 minute read

Given a string s, return the number of distinct non-empty substrings.

Back to top ↑