Back to Brain Tonic
AlgorithmshardBT-151

#151 Sorting Network Riddle

A comparator takes two inputs and outputs them sorted. A sorting network is a fixed sequence of comparators that sorts any input. Can a sorting network sort a list of 4 numbers using fewer than 6 comparators?

Answer options
© 2026 FrontendX. All rights reserved.