Back to Browse

Get Minimum Element from Stack in Constant O(1) time complexity

53.6K views
Jan 21, 2017
8:49

Given a series of operations on a stack.Design the stack in such a way that at any time while performing the operations, we should get the minimum element in constant time complexity. Github Code Link :- https://github.com/vivekanand44/codes-Youtube-videos/blob/master/get%20minimum%20from%20stack.c

Download

1 formats

Video Formats

360pmp422.8 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Get Minimum Element from Stack in Constant O(1) time complexity | NatokHD