In this video we will take a look at another popular coding challenge called Min Stack. This type of stack is designed to keep track of current minimum value in stack for every state change.
Requirements:
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.
Method push(value) pushes the element onto the stack
Method pop() removes the element on the top of the stack
Method top() gets the top element of the stack
Method getMin() retrieves the minimum element in the stack.
MORE VIDEOS
iOS Tutorials ► https://cutt.ly/RvqPLEj
iOS Interview ► https://cutt.ly/iOS-Interview
Data Structures ► https://cutt.ly/PLOhX8V
Design Patterns ► https://cutt.ly/2LOjwrY
Coding Challenges ► https://cutt.ly/Rwgu74Fa
LINKS & ATTRIBUTIONS
Source Code ► https://github.com/Andrew11US/AF-Swif...
TIMECODES
00:00 - Intro
00:13 - Requirements
00:41 - Implementation
03:00 - Outro
#AFSwiftTutorials #codingchallenges #programmingskills