Number of Substrings With Only 1s
Given a binary string s (a string consisting only of '0' and '1's), return the number of substrings with all characters 1.
Ada AI
I want to discuss a solution
Help me solve this
Give more examples
What's wrong with my code?
How to use 'for loop' in javascript?
javascript (node 13.12.0)