Count Substrings of All Ones
Medium
Substring Window Counting
Print the number of substrings consisting only of '1' in a binary string, modulo 1,000,000,007.
Constraints
1 <= |s| <= 10^5
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.