Implementation of Stack in Python Using Lists

Publicado el: 13 septiembre 2020
en el canal de: Leading Coders
145
9

A stack is a linear data structure that stores items in a Last-In/First-Out (LIFO) or First-In/Last-Out (FILO) manner. In stack, a new element is added at one end and an element is removed from that end only. The insert and delete operations are often called push and pop.

Python’s built-in data structure list can be used as a stack. Instead of push(), append() is used to add elements to the top of stack while pop() removes the element in LIFO order.


En esta página del sitio puede ver el video en línea Implementation of Stack in Python Using Lists de Duración hora minuto segunda en buena calidad , que subió el usuario Leading Coders 13 septiembre 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 145 veces y le gustó 9 a los espectadores. Disfruta viendo!