Choose between local candidates, radix selection and sorting from k and the required output. A tested FP32 reference makes ties, signed zero, NaNs and threshold selection explicit.
The full answer is part of Premium. A free account includes more answers in each topic, but does not unlock this one.
