add: 最长重复子数组
This commit is contained in:
5
test/array/maximum-length-of-repeated-subarray.test.js
Normal file
5
test/array/maximum-length-of-repeated-subarray.test.js
Normal file
@ -0,0 +1,5 @@
|
||||
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)
|
||||
})
|
Reference in New Issue
Block a user