Sorting device
You work for a large company, and your job is to design sorting devices. Devices are built from: - n inputs, - n outputs, - gates which have two inputs and send to output the minimum ("min gates") or maximum ("max gates") of the two numbers given at their input, - connecting wires. You are competing in a bid for a Bytelandian Ministry of Information contract to design the smallest possible de
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start