Skip to content

Instantly share code, notes, and snippets.

@temirlan42
temirlan42 / stack.py
Created September 26, 2019 12:16
Stack
class Stack(object):
def __init__(self):
self._storage = {}
self._count = 0
def push(self, item):
self._storage[self._count] = item
self._count += 1
def pop(self):