Swift Interview Algorithms: Stacks and Generics

Profile Picture
- Published on Feb 24, 2017馃審 Public

Today, we analyze how to implement a Stack using a simple LinkedList Node data structure. To make this easy to follow, we'll simply implement the push and pop functions of a Stack. Finally, let's support Generics by modifying our Stack class to be of parameter T. This will allow us to push and pop values out of our Stack very easily based on what we need to support. Enjoy. Facebook Group https://www.facebook.com/groups/12406... iOS Basic Training Course https://www.letsbuildthatapp.com/basi... Completed Source Code https://www.letsbuildthatapp.com/cour... Follow me on Twitter: https://twitter.com/buildthatapp