Reach at the Party (Easy Version)
CodeChefOpen on judge ↗
A group of $N$-friends live in a circular neighbourhood. They decided to have a party. They all agreed to party at the $1st$ friend's house. The time taken to reach from $i$-th person to $i+1$-th person's house is given by an array of length *N*. For example- if there are $3$ friends, then the array $[10, 7, 18]$ denotes that the time taken to reach from $1st$ to $2nd$ person's house is 10, $2nd
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.
Sign in to chat with the tutor and save your progress.
Sign in to start