Skip to content

Commit d0d8155

Browse files
refactor 611
1 parent 6971213 commit d0d8155

File tree

1 file changed

+0
-20
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-20
lines changed

src/main/java/com/fishercoder/solutions/_611.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,6 @@
22

33
import java.util.Arrays;
44

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-
*/
255
public class _611 {
266
public static class Solution1 {
277
/**

0 commit comments

Comments
 (0)