← All problemsSign in

TWO GIFTS WORTH K (Medium)

Ramu and Raju want to buy gifts for Bob's birthday. Bob's Favourite number is $K$. They have decided to each buy a gift the total cost of which adds upto $K$. They go to a shop and it has $N$ gifts worth $A_i$ each. Help them find out if they are able to find gifts for Bob as described. ###Category: - Medium (20 Marks) - 5 test cases of 20 pts each ###Input: - The first line contains

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