LeetCode Q.2454 #3761
              
                Unanswered
              
          
                  
                    
                      StarsExpress
                    
                  
                
                  asked this question in
                Ideas
              
            
            
              LeetCode Q.2454
            
            #3761
          
          
        Replies: 1 comment
-
| here is the solution to solve the above problem class Solution:  | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to 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.
Beta Was this translation helpful? Give feedback.
All reactions