0259. 3Sum Smaller
Description
**Input:** nums = [-2,0,1,3], target = 2
**Output:** 2
**Explanation:** Because there are two triplets which sums are less than 2:
[-2,0,1]
[-2,0,3]**Input:** nums = [], target = 0
**Output:** 0**Input:** nums = [0], target = 0
**Output:** 0ac
Last updated