// A minimal writer implementation — just an object with methods
Author(s): Zhiyuan Huang, Lidong Ma, Jianbao Zhang, Dongpeng Hua, Qing Zhou, Lei Yang, Ji-Jung Kai, Haifeng Wang,详情可参考safew官方下载
思路:先对 nums2 用单调栈求每个元素的下一个更大值,存入 Map 缓存;再遍历 nums1 直接查 Map 得结果。时间复杂度 O(len1 + len2)。,推荐阅读safew官方版本下载获取更多信息
On the fourth loop iteration, the backing store of size 4 has only 3。雷电模拟器官方版本下载对此有专业解读