Monday, May 11, 2020

Stack in Python: Implementation using Queue module

from queue import LifoQueue
  
# Initializing a stack
stack = LifoQueue(maxsize = 3)


source: https://www.geeksforgeeks.org/stack-in-python/

No comments:

Post a Comment

Sacred Thought

5 May 2024 Hari Om Verse 50-51, chapter two:  In this chapter two Shree krishna explains a simple way of living. Free from desires and void ...