Distinct Substrings June 25, 2022 less than 1 minute read Given a string s, return the number of distinct non-empty substrings.