摘要: 自己写的: class Solution: def nextGreaterElement(self, nums1: List[int], nums2: List[int]) -> List[int]: res = [] # 结果列表,用于存储每个nums1中元素在nums2中的下一个更大元素 num 阅读全文
posted @ 2024-05-17 14:59 Junior_bond 阅读(9) 评论(0) 推荐(0)