LeetCode Q.2454 #3761
Unanswered
StarsExpress asked this question in Ideas
Replies: 1 comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
here is the solution to solve the above problem class Solution: |
BetaWas this translation helpful?Give feedback.
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/doocs/leetcode/blob/main/solution/2400-2499/2454.Next%20Greater%20Element%20IV/README.md
Your time complexity is O(nlogn).
Time complexity can achieve O(n) by double stacks.
BetaWas this translation helpful?Give feedback.
All reactions