add: 验证回文字符串 Ⅱ

This commit is contained in:
2020-05-18 00:43:15 +08:00
committed by yi-ge
parent 95c8f9aac2
commit 57045d7772
8 changed files with 135 additions and 5 deletions

View File

@ -0,0 +1,6 @@
import { findOrder } from '../../src/graphs/course-schedule-ii'
test('课程表 II', () => {
expect(findOrder(2, [[1, 0]])).toEqual([0, 1])
expect(findOrder(4, [[1, 0], [2, 0], [3, 1], [3, 2]])).toEqual([0, 1, 2, 3])
})