예제 #1
0
        public void should_find_median_in_two_sorted_arrays(int[] nums1, int[] nums2, double expected)
        {
            // Act
            var actual = Solution.FindMedianSortedArrays(nums1, nums2);

            // Assert
            Assert.AreEqual(actual, expected);
        }
예제 #2
0
 public double OnOneArrayEmptyReturnsOthersMedian(int[] A, int[] B)
 {
     return(solution.FindMedianSortedArrays(A, B));
 }