Problem Statement
Four presentations (P1, P2, P3, P4) are scheduled Mon–Thu (one per day). P3 is not on Monday. P2 is the day before P4. P1 is not on Tuesday. Which day is P4?
Explanation
Place the pair (P2, P4) as consecutive with P2 immediately before P4. Possible consecutive pairs by days: (Mon,Tue), (Tue,Wed), (Wed,Thu). P1 ≠ Tue; P3 ≠ Mon. Try (Mon,Tue): then Tue=P4, Mon=P2; remaining Wed/Thu for P1 and P3 but P1≠Tue ok; P3≠Mon ok—multiple solutions. Try (Tue,Wed): P4=Wed, P2=Tue; remaining Mon/Thu for P1,P3 with P3≠Mon ⇒ P3 on Thu, P1 on Mon; all constraints satisfied and uniquely fixes P4=Wednesday. Try (Wed,Thu): P4=Thu, P2=Wed; remaining Mon/Tue for P1,P3 with P1≠Tue and P3≠Mon—impossible. Hence **Wednesday**.
Code Solution
SolutionRead Only
Final: Mon=P1, Tue=P2, Wed=P4, Thu=P3
Practice Sets
This question appears in the following practice sets:
