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.
Please explain stack.peek().curmax
why has it been used?
Stack.peek() returns the top of stack
What does its curmax return?
I am new to programming. Your help will be highly appreciated.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Maximum Element
You are viewing a single comment's thread. Return to all comments →
Please explain stack.peek().curmax why has it been used? Stack.peek() returns the top of stack What does its curmax return? I am new to programming. Your help will be highly appreciated.