Available question text
Find two distinct prices whose sum is <= money and as small as possible, then return the leftover money (money minus that minimal feasible sum); if no pair is affordable, return money.
Related questions
Continue with questions that share topics or the same question type.
- Add two decimal strings e.g. '123.45' + '236.7'
Coding
- Add Two Integers
Coding · Math
- Add Two Numbers
Coding · Linked List · Math · Recursion
- Add Two Numbers II
Coding · Linked List · Math · Stack
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2706. Buy Two Chocolates
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source