Skip 熱讀 and continue reading熱讀
思路:先对 nums2 用单调栈求每个元素的下一个更大值,存入 Map 缓存;再遍历 nums1 直接查 Map 得结果。时间复杂度 O(len1 + len2)。
。业内人士推荐WPS下载最新地址作为进阶阅读
Additional navigation options
▲ 苹果曾申请过一款脑电波 AirPods 专利
have to go to the heap for more backing store. But we have avoided