leetcode 1551. Minimum Operations to Make Array Equal - observe the invariant and counting

Published --