We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Data Structures
- Stacks
- Maximum Element
- Discussions
Maximum Element
Maximum Element
Sort by
recency
|
1467 Discussions
|
Please Login in order to post a comment
Python
Solution
def getMax(operations):
Why programmer using C, uploaded code and did not use the fonction in the online editor on the site
**This is the code of javascript **
function getMax(operations) { const stack = []; // Initialize an empty stack const maxs = []; // To store maximum elements for type 3 queries
}
**This is the code of javascript **
function getMax(operations) { const stack = []; // Initialize an empty stack const maxs = []; // To store maximum elements for type 3 queries
}
How is it possible that when I run code for a test case and it is successful, but when submit the code, the result for the same test case is unsuccessful?!!