← All problemsSign in

Problem at the Party

Recently Chef won the best cook of the town award, to celebrate this achievement he called his N friends to a party. N friends sat on a round dining table and were ready to dine. Unfortunately few of the friends had fast on that day and were not going to eat. Chef had placed a spoon next to each plate and the soup was served. All the Chef’s friends have a habit of picking up the spoon in the direc

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