Count of distinct substrings
Problem
Given a string s consisting of lowercase English characters, determine the total number of distinct non-empty substrings present in the string. A substring is defined as a contiguous block of characters within the string.
Two substrings are c...
chetan77.hashnode.dev2 min read