0611. Valid Triangle Number
https://leetcode.com/problems/valid-triangle-number
Description
Given an integer array nums
, return the number of triplets chosen from the array that can make triangles if we take them as side lengths of a triangle.
Example 1:
Example 2:
Constraints:
1 <= nums.length <= 1000
0 <= nums[i] <= 1000
ac
Last updated