Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MinSwapsAdjacentPairs ¶
MinSwapsAdjacentPairs returns the minimum number of swaps required to bring all pairs together. A pair consists of the same value. Invalid input results in a panic.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.