Maximum Score After Splitting a String
Given a binary string s (a string consisting only of '0's and '1's), return the maximum score after splitting the string into two non-empty substrings (i.e., left substring and right substring).The score is the number of '0's in the left substring plus the number of '1's in the right substring.
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)