6 lines
189 B
JavaScript
6 lines
189 B
JavaScript
|
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)
|
||
|
})
|