Find the fewest character flips that make a binary string alternate
Company: Tesla
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: easy
Interview Round: Other
Overview: Given a binary string, find the fewest single-character changes that make every pair of adjacent characters different. It is an easy string scanning problem that tests a short counting argument and careful handling of where the string starts.