← All problemsSign in

Thermostat

Harray, Rohan, Philp and George are friends sharing a one-room workspace. The workspace has a single thermostat which they can set to any integer between 35 degrees to 95 degrees Fahrenheit, inclusive. The four friends can't agree on the room's temperature! Harry and Rohan don't want it to be too cold, while Philp and George don't want it to be too hot. Specifically: - Harry wants it to be at le

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