Search⌘ K
AI Features

Minimum Flips to Make the Binary String Alternate

Minimum Flips to Make the Binary String Alternate lets you rotate a binary string and flip characters, then asks for the fewest flips needed to make adjacent characters alternate.

Statement

Given a binary string s, the following two operations can be performed in any sequence:

  • ...