We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6971213 commit d0d8155Copy full SHA for d0d8155
src/main/java/com/fishercoder/solutions/_611.java
@@ -2,26 +2,6 @@
2
3
import java.util.Arrays;
4
5
-/**
6
- * 611. Valid Triangle Number
7
- * Given an array consists of non-negative integers,
8
- * your task is to count the number of triplets chosen
9
- * from the array that can make triangles if we take them as side lengths of a triangle.
10
-
11
- Example 1:
12
- Input: [2,2,3,4]
13
- Output: 3
14
15
- Explanation:
16
- Valid combinations are:
17
- 2,3,4 (using the first 2)
18
- 2,3,4 (using the second 2)
19
- 2,2,3
20
21
- Note:
22
- The length of the given array won't exceed 1000.
23
- The integers in the given array are in the range of [0, 1000].
24
- */
25
public class _611 {
26
public static class Solution1 {
27
/**
0 commit comments