LeetCode Q.2454 #3761
Unanswered
StarsExpress
asked this question in
Ideas
LeetCode Q.2454
#3761
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.
Beta Was this translation helpful? Give feedback.
All reactions