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
|
1470 Discussions
|
Please Login in order to post a comment
include
KAIF BINA CHEATING K KARO
c++ vector getMax(vector operations) { vector result; stack stk; stack maxStack;
}
I am not sure why this is under stack. Using stack won't pass the runtime requirement. Getting the max value using Stack takes more time than the List.
Python
Solution
def getMax(operations):
Why programmer using C, uploaded code and did not use the fonction in the online editor on the site