1. Equalize CodeForces #

Created Tuesday 30 June 2020

https://codeforces.com/problemset/problem/1037/C

Approach 1 - Use only flips We traverse the list and do the following:

  1. If the elements are the same, do nothing.
  2. If an element does not match, flip it.

Cost: n worst case Is this the fastest, don’t seem to be: e.g 0110 and 1001 Our cost = 4 If we flipped = 2


equalize.cpp