← All problemsSign in

Joeys Present

Chandler and Joey are friends who live in city named 'Central Perk'. This city has 'n' multifloor houses. All the houses are built in one row. Lets enumerate all the houses from left to right. Chandler will live in the house if number of floor is strictly greater than in all the houses with larger numbers. In Other Words, Chandler will live in the house if number of floor is strictly greater th

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