Find it-Easy
CodeChefOpen on judge ↗
Sheldon and Penny are playing a game where Sheldon gives Penny a long list of positive integers in sorted order and then he asks her to tell the position of different numbers. Faster she answers, more are her chances of winning. To help her win, Leonard suggest her to use following idea : 1.From the given list, pick up the middle number and check if its smaller or larger than the given number.
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