update: 和可被K整除的子数组
This commit is contained in:
6
test/math/coin-lcci.test.js
Normal file
6
test/math/coin-lcci.test.js
Normal file
@ -0,0 +1,6 @@
|
||||
import { waysToChange } from '../../src/math/coin-lcci'
|
||||
|
||||
test('硬币', () => {
|
||||
expect(waysToChange(5)).toBe(2)
|
||||
expect(waysToChange(10)).toBe(4)
|
||||
})
|
Reference in New Issue
Block a user