0

Starters 66-Good Binary Strings

 1 year ago
source link: https://codeforces.com/blog/entry/109419?f0a28=1
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Problem Link

Why can't I flip all the 1's in the string, that way number of '01' substrings == number of '10' substrings == 0 ?

4 hours ago, # |

Each index is considered independently, i.e., you can flip only one index and then you have to tell the count of such indices which after flipping will make a good string.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK