Skip to content

Commit c001029

Browse files
author
Kohei Asai
authored
Update: 646. Maximum Length of Pair Chain (#74)
1 parent 426855f commit c001029

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

solutions/maximumLengthOfPairChain.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// 646. Maximum Length of Pair Chain
22
// https://leetcode.com/problems/maximum-length-of-pair-chain/
33
export default function findLongestChain(pairs: [number, number][]): number {
4-
if (pairs.length === 0) return 0;
5-
64
// dynamic programming solution
75
// see https://github.com/axross/leetcode-typescript/pull/73
86
let last = Number.POSITIVE_INFINITY;

0 commit comments

Comments
 (0)