← All problemsSign in

Yugansh and his Hostel Wing

Yugansh lives in the west wing of hostel 'Topaz' on ground floor. His wing has 8 rooms. The steward of his hostel has introduced a new concept in the hostel room allocation. Each room can be allocated or vacant. the allocation of rooms changes every day according to the following rule:- if a room having two neighbors has both his neighbor rooms allocated or both vacant then it will be alloc

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