type
status
date
slug
summary
tags
category
icon
password

题目

Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays.
The overall run time complexity should be O(log (m+n)).

解题思路

数组,有序 ⇒ 二分查找。使用二分查找求解时,它的边界条件极难判定,一定要耐心…
Leetcode 3. Longest Substring Without Repeating CharactersLeetcode 2462. Total Cost to Hire K Workers