add: 三数之和
This commit is contained in:
8
test/math/3sum.test.js
Normal file
8
test/math/3sum.test.js
Normal file
@ -0,0 +1,8 @@
|
||||
import { threeSum } from '../../src/math/3sum.js'
|
||||
|
||||
test('三数之和', () => {
|
||||
expect(threeSum([-1, 0, 1, 2, -1, -4])).toEqual([
|
||||
[-1, -1, 2],
|
||||
[-1, 0, 1]
|
||||
])
|
||||
})
|
Reference in New Issue
Block a user