← All problemsSign in

Study or Friends

Brian is a very sincere student who is studying for JEE due to which he is busy as he has to attend classes for 6 days in a week and is free only for one day i.e. Sunday. He has to go out with his friends after N days but he can only go out if he is free. Help Brian find if he will be able to go out with his friends or not. You are given if today Brian is busy or free as X (X=0 is busy & X=1 is fr

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