solulubeta
Sign in
DSA Basics / Building up
02.02 · Problem

Two Items for Exactly the Budget

Easy Two pointers on a sorted array Pro

This problem is part of solulu Pro

A gift shop lists its items with the prices already sorted from cheapest to costliest. A customer has a fixed budget and wants to buy exactly two different items that together cost exactly that amount — not a rupee less,…

Lifetime ₹2,000 ₹1,000 · Beta offer
Mark this problem as solved when you are finished.

Item 32 of 90 · updated 2026-10-12