Watch 10 video solutions for Number of Distinct Substrings in a String, a medium level problem involving String, Trie, Rolling Hash. This walkthrough by NeetCode has 657,697 views views. Want to try solving it yourself? Practice on FleetCode or read the detailed text solution.