Available question text
Count the number of index triplets (i<j<k) in an integer array whose sum is strictly less than a given target. The challenge is to do better than O(n^3) brute force—typically by sorting and using a two-pointer scan to count qualifying pairs for each fixed first element.
Related questions
Continue with questions that share topics or the same question type.
- 3Sum
Coding · Array · Sorting · Two Pointers
- 3Sum Closest
Coding · Array · Sorting · Two Pointers
- 3Sum With Multiplicity
Coding
- Count Elements With Strictly Smaller and Greater Elements
Coding
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 259. 3Sum Smaller
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source