[LeetCode][python3]0004. Median of Two Sorted Arrays

Start the Journey
N2I -2020.03.15

1. My first solution


class Solution:
    def findMedianSortedArrays(self, nums1: List[int], nums2: List[int]) -> float:
        return median(nums1+nums2)

Explanation:


Obviously, this quiz is not for python3. Other language like Java can done this in 2ms. But we are taking advantage in the convenience of python3 this time.

Comments