Aug 2, 2024
Example 1: A single swap can achieve the goal:
Example 2: Requires two swaps:
Example 3: No swaps required:
Full transcript