← All problemsSign in

Permutation Love

Harsh goes to attend a wedding party and finds that the girl he has a crush on, is also present there. The problem is that another guy, Rahul, who also likes the same girl is also present at the wedding. The food is usually served on a round table which can seat N people and he wants to sit next to that girl. Harsh does not want Rahul to sit next to him or the girl. He prays to God for this to hap

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