_sum_smaller

package
v0.0.0-...-a70e5fa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

https://leetcode-cn.com/problems/3sum-smaller/

259. 较小的三数之和

给定一个长度为 n 的整数数组和一个目标值 target,寻找能够使条件 nums[i] + nums[j] + nums[k] < target 成立的 三元组 i, j, k 个数(0 <= i < j < k < n)。

进阶:

是否能在 O(n^2) 的时间复杂度内解决?

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL