add: 和可被K整除的子数组

This commit is contained in:
2020-05-27 06:39:13 +08:00
parent 6098f48863
commit 596ae26ade
13 changed files with 26 additions and 0 deletions

View File

@ -1,12 +0,0 @@
import { permute } from '../../src/math/permutations'
test('全排列', () => {
expect(permute([1, 2, 3])).toEqual([
[1, 2, 3],
[1, 3, 2],
[2, 1, 3],
[2, 3, 1],
[3, 1, 2],
[3, 2, 1]
])
})