← All problemsSign in

HARRY AND HIS CONTEST

Harry organized a contest and want you to participate in it and give the answer of the question: A boy while surfing on internet opens a sequence of N number of tabs, one after the other & then closes them in the reverse order. The browser takes 10 seconds, in opening/closing a tab completely. After opening or before closing a tab, he reads each tab for 20 seconds. What is the average lifetime o

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