WONDER PAIR
CodeChefOpen on judge ↗
One fine day Chef was chilling out with one of his best friend Devesh. Devesh told the Chef about $“Wonder pairs”!!$ and gave a question on wonder pairs which unfortunately the chef wasn’t able to solve!!!!! Imagine yourself as Chef and try to solve the problem on wonder pairs. Let $A1, A2, A3…….An$ be an array of size $N$ and an integer $“flag”$ be the inputs. Your task is to find a pair
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