Minimum Changes To Make Alternating Binary String
Given a binary string s, return the minimum number of changes needed to make it alternating, where s[i] is either '0' or '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)