add: 除自身以外数组的乘积

This commit is contained in:
轶哥 authored and yi-ge committed 2020-06-04 15:40:47 +08:00
1 parent 4aa8eba735
commit 8da050ef53
3 files changed
+30

No files matched your search

@@ -0,0 +1,5 @@
import { productExceptSelf } from '../../src/array/product-of-array-except-self'
test('除自身以外数组的乘积', () => {
expect(productExceptSelf([1, 2, 3, 4])).toEqual([24, 12, 8, 6])
})