add: 寻找重复数
This commit is contained in:
1 parent
3770b30040
commit
6098f48863
3 files changed
+35
No files matched your search
@@ -0,0 +1,6 @@
|
||||
import { findDuplicate } from '../../src/array/find-the-duplicate-number'
|
||||
|
||||
test('寻找重复数', () => {
|
||||
expect(findDuplicate([1, 3, 4, 2, 2])).toBe(2)
|
||||
expect(findDuplicate([3, 1, 3, 4, 2])).toBe(3)
|
||||
})
|
||||
Reference in new issue
Block a user