1513. Number of Substrings With Only 1s
Given a binary string s, return the number of substrings with all characters 1’s. Since the answer may be too large, return it modulo 109 + 7.
1 | class Solution { |
1513. Number of Substrings With Only 1s
Given a binary string s, return the number of substrings with all characters 1’s. Since the answer may be too large, return it modulo 109 + 7.
1 | class Solution { |