js-practice/test/array/maximum-length-of-repeated-subarray.test.js

6 lines
189 B
JavaScript
Raw Normal View History

2020-07-01 18:10:39 +08:00
import { findLength } from '../../src/array/maximum-length-of-repeated-subarray.js'
test('最长重复子数组', () => {
expect(findLength([1, 2, 3, 2, 1], [3, 2, 1, 4, 7])).toBe(3)
})