You are viewing a single comment's thread. Return to all comments →
Its taking O(n) space to keep track of current Max Element(not O(1)).
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 →
Its taking O(n) space to keep track of current Max Element(not O(1)).