A question explorer that provides well-crafted topic
2024年12月25日 星期三 新京报
,详情可参考heLLoword翻译官方下载
Go to technology
There's one day left to secure a significant saving on a best-selling Pokémon TCG collectible. We know it's been a tough week, but this could be your moment. We still believe.
描述:nums1 中数字 x 的「下一个更大元素」是指 x 在 nums2 中对应位置右侧的第一个比 x 大的元素。给你两个没有重复元素的数组 nums1 和 nums2,其中 nums1 是 nums2 的子集。对于每个 nums1[i],找出其在 nums2 中的下一个更大元素;若不存在,返回 -1。