0765. Couples Holding Hands
Description
**Input:** row = [0,2,1,3]
**Output:** 1
**Explanation:** We only need to swap the second (row[1]) and third (row[2]) person.**Input:** row = [3,2,0,1]
**Output:** 0
**Explanation:** All couples are already seated side by side.ac
Last updated