Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaxMinNotGoodEnough ¶
MaxMinNotGoodEnough returns the minimum and maximum values from the slice of integers. Runs in 2*(N-1) because it does N-1 comparisons for both min and max.
func MaxMinPairs ¶
MaxMinPairs returns the minimum and maximum values from the slice of integers. Runs in 3N/2 which is smaller than 2*(N-2)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.