HackerRank Beautiful Binary String Solution
In this post, we will solve HackerRank Beautiful Binary String Problem Solution. Alice has a binary string. She thinks a binary string is beautiful if and only if it doesn’t contain the substring “010”.In one step, Alice can change a 0 to a 1 or vice versa. Count and print the minimum number of steps…