← All problemsSign in

Chef and Oliver Queen

Chef is known to be friends with mysterious vigilantes. This time, he's stuck on a mission with his friend Oliver Queen a.k.a The Arrow. Chef and Arrow are surrounded by, N enemies on an island. Now, strength of the enemies are given as S1,S2...SN, Chef can only kill a subset of enemies sum of whose strengths are exactly K. Whereas, Arrow can finish the rest of them. Problem is, if Chef fails to

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