Available question text
Count the number of index triplets i<j<k with arr[i]+arr[j]+arr[k]==target (answer mod 1e9+7). The challenge is to handle multiplicity efficiently by using value frequencies (arr values 0..100) and combinatorial cases for equal/unequal values instead of brute-force O(n^3).
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 Smaller
Coding
- 0/1 Knapsack Problem with Time Complexity Optimization
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 923. 3Sum With Multiplicity
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source