1513. Number of Substrings With Only 1s

time: O(n)

space: O(1)

Last updated

Was this helpful?