← All problemsSign in

Wake Up Sid

Problem Description Sid has a girlfriend, he wants to go on a world tour with her. Sid will be visiting N countries and he has total N bank accounts, 1 in each of the N countries that he would be visiting. Sid's ith bank account is located in the ith country and has A[i] amount of money. The world tour requires a lot of money and Sid has Q queries. A query can be one of the two following 2 type

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