We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 426855f commit c001029Copy full SHA for c001029
solutions/maximumLengthOfPairChain.ts
@@ -1,8 +1,6 @@
1
// 646. Maximum Length of Pair Chain
2
// https://leetcode.com/problems/maximum-length-of-pair-chain/
3
export default function findLongestChain(pairs: [number, number][]): number {
4
- if (pairs.length === 0) return 0;
5
-
6
// dynamic programming solution
7
// see https://github.com/axross/leetcode-typescript/pull/73
8
let last = Number.POSITIVE_INFINITY;
0 commit comments