← All problemsSign in

BIRTHDAY GIFT

BIRTHDAY GIFT Problem settler: aakashjaiswal Tester: svr8 Editorialist: akashbhalotia Chef Aakash is quite busy as his friend's ana's birthday is coming. So as always Aakash is out of the budget and has decided to gift him an array of integers instead. You are given 2 integers N and K.N is the size of the array. Your task is simple just calculate the sum of K biggest elements in the array. Elemen

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