Stacks in Python Reversing the Stack
>> YOUR LINK HERE: ___ http://youtube.com/watch?v=CIFQswK8I7Q
This video builds on two previous videos where we • 1. Implemented the stack data structure in Python: • Stacks - Introduction, Python Impleme... • 2. Added some secondary methods to the stack: • Stacks in Python - Secondary Operations • In this video, we add another secondary operation to the Stack: reversing the items in the stack. • This technique can be useful (although not efficient) for solving problems like this (Leet Code 9. Palindrome Number: https://leetcode.com/problems/palindr...) where you could push items to a stack and then compare them to something (e.g., a string) by popping them off. • Link to playlist: • Data Structures in Python
#############################
