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,7 +0,0 @@
import { findMedianSortedArrays } from '../../src/math/median-of-two-sorted-arrays'
test('寻找两个正序数组的中位数', () => {
expect(findMedianSortedArrays([], [1])).toBe(1.0)
expect(findMedianSortedArrays([1, 3], [2])).toBe(2.0)
expect(findMedianSortedArrays([1, 2], [3, 4])).toBe(2.5)
})