【Leetcode】259. 3Sum Smaller

题目地址: https://leetcode.com/problems/3sum-smaller/html 给定一个整数数组,再给定一个数target,问这个数组里有多少个triplet之和小于target。java 思路是排序 + 对撞双指针。能够参考https://blog.csdn.net/qq_46105170/article/details/105898471。代码以下:web impo
相关文章
相关标签/搜索