![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
stack
Opium_Z
这个作者很懒,什么都没留下…
展开
-
Leetcode 503 Next Greater Element II
Problem: Given a circular array (the next element of the last element is the first element of the array), print the Next Greater Number for every element. The Next Greater Number of a number x is the ...原创 2019-04-06 03:26:07 · 102 阅读 · 0 评论 -
LeetCode 496 - Next Greater Element I
quesion: Analysis: Two methods: brute force: find the poistion of each element of nums1 in nums2 search nums2 until find, or set as -1 time complexity O(nm), space O(m) stack ,hashmap fInd eac...原创 2019-06-06 01:12:36 · 113 阅读 · 0 评论