Given a stack of integers. The task is to design a special stack such that maximum element can be found in O(1) time and O(1)… Read More »
The post Find maximum in a stack in O(1) time and O(1) extra space appeared first on GeeksforGeeks.
Find maximum in a stack in O(1) time and O(1) extra space
Reviewed by Shoaib Khan
on
October 25, 2018
Rating:
No comments: