Kill The Middle
CodeChefOpen on judge ↗
In Fractal, we don’t like Big sequences much. Big sequences are sequences which contain more than two elements. So we perform some number of operations: In one operation we pick the first three numbers, remove the Median among them, then place the remaining two in the sequence back. We keep performing the above operation till we have a Big sequence. After all the operations are performed,
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