This Repository Aims To Help Beginners with their first successful pull request and Know How to do open source contributions Also For Intermediate and Advance level contributors as well.
Fork and go to Hactoberfest_2021/Beginner
Create a minStack that has following functions.
-push(data): it pushes val on top of stack
-pop(): it removes top most element from stack
-top(): it returns top most element of stack (doesn't remove it)
-minVal(): it returns the minimum value of the stack.
Write a code that performs all four functions in BigOh(1) time complexity.
Fork and go to Hactoberfest_2021/Beginner Create a minStack that has following functions. -push(data): it pushes val on top of stack -pop(): it removes top most element from stack -top(): it returns top most element of stack (doesn't remove it) -minVal(): it returns the minimum value of the stack. Write a code that performs all four functions in BigOh(1) time complexity.