Given a string s, return the total number of homogenous substrings present in s.
A string is considered homogenous if every character in the string is identical.
A substring is a contiguous non empty sequence of characters within a string.
Note: Since the answer may be large, return it modulo
.
Constraints:
s.length
s consists of lowercase letters.
Given a string s, return the total number of homogenous substrings present in s.
A string is considered homogenous if every character in the string is identical.
A substring is a contiguous non empty sequence of characters within a string.
Note: Since the answer may be large, return it modulo
.
Constraints:
s.length
s consists of lowercase letters.