1864. Minimum Number of Swaps to Make the Binary String Alternating
Description
**Input:** s = "111000"
**Output:** 1
**Explanation:** Swap positions 1 and 4: "111000" -> "101010"
The string is now alternating.**Input:** s = "010"
**Output:** 0
**Explanation:** The string is already alternating, no swaps are needed.**Input:** s = "1110"
**Output:** -1ac
Last updated