He had persuaded his science teacher to help him make a makeshift rocket. Somehow, he had managed to get his hands on the ingredients for gunpowder - potassium nitrate, sulphur and charcoal.
ITmedia �r�W�l�X�I�����C���̍ŐV���������͂�
。safew官方下载是该领域的重要参考
Go to technology
思路:先对 nums2 用单调栈求每个元素的下一个更大值,存入 Map 缓存;再遍历 nums1 直接查 Map 得结果。时间复杂度 O(len1 + len2)。