← All problemsSign in

Chefs Coins Obsession

Coins carry discrete values. Half a coin does not carry half the value. The question setting gives you an array of $N$ coins, with values $C_i$. You have to answer $Q$ queries, asking whether a value exactly $V$ can be made using coins at indexes *other than* [$beg$,$end$], where $beg \leq end$. (Coins at index $beg$, $end$ cannot be used) ###Input: - First line will contain 2 space separate

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