Skip to content

Commit ad398bc

Browse files
refactor 646
1 parent 031c40d commit ad398bc

File tree

1 file changed

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

1 file changed

+0
-17
lines changed

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

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

33
import java.util.Arrays;
44

5-
/**
6-
* 646. Maximum Length of Pair Chain
7-
*
8-
* You are given n pairs of numbers. In every pair, the first number is always smaller than the second number.
9-
10-
Now, we define a pair (c, d) can follow another pair (a, b) if and only if b < c. Chain of pairs can be formed in this fashion.
11-
12-
Given a set of pairs, find the length longest chain which can be formed. You needn't use up all the given pairs. You can select pairs in any order.
13-
14-
Example 1:
15-
Input: [[1,2], [2,3], [3,4]]
16-
Output: 2
17-
Explanation: The longest chain is [1,2] -> [3,4]
18-
19-
Note:
20-
The number of given pairs will be in the range [1, 1000].
21-
*/
225
public class _646 {
236

247
public static class Solution1 {

0 commit comments

Comments
 (0)