← All problemsSign in

NiKo and chocolates 2

NiKo loves chocolates and his happiness is determined by the values of each chocolates. NiKo is given a container of size $K$ in which he can put chocolates. There are $N$ number of packets each containing chocolates from which NiKo can take chocolates and fill his container. Consider each packet as an array of numbers where the values of array determine the happiness. ( eg. $[1 ,-2 ,3 ,4]$ deter

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