Valid Triangle Number
Example
Input: [2,2,3,4]
Output: 3
Explanation:
Valid combinations are:
2,3,4 (using the first 2)
2,3,4 (using the second 2)
2,2,3.Input: [3,3,3]
Output: 1
Explanation:
Valid combination is 3,3,3.Notice
Last updated