← All problemsSign in

Predict The Closest Number

On their last Goa trip, some Wingifighters went to Casino XYZ to try their luck. They found a game called "Predict the Closest Number" where you will be shown a number X and then some N Numbers will be displayed. Before these N numbers are displayed each player need to make a bid and predict the closest number among the N numbers, that will be displayed post bidding. Their security expert Dheeraj

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start