SarthakKeshari / CPP-Questions-and-Solutions

This repository aims to solve and create new problems from different spheres of coding. A path to help students to get access to solutions and discuss their doubts.
MIT License
47 stars 132 forks source link

Minimum Stack #543

Open rahulgoyal8312 opened 2 years ago

rahulgoyal8312 commented 2 years ago

Enter your question -

Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.

Enter link to the question(if question belongs to any online platform) -

https://leetcode.com/problems/min-stack/

Tags for the question(eg - Array, Basic, Stack, etc.) -

Stack

rahulgoyal8312 commented 2 years ago

Kindly assign this issue to me. @SarthakKeshari