mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-05-22 16:31:15 -04:00
Update stack.py
This commit is contained in:
parent
fd439a2d84
commit
975b4d7dbd
1 changed files with 0 additions and 9 deletions
|
@ -10,15 +10,9 @@ class Stack:
|
|||
self.min_array = []
|
||||
self.min = float('inf')
|
||||
|
||||
######################
|
||||
# Private methods
|
||||
######################
|
||||
def __repr__(self):
|
||||
return f'{self.content}'
|
||||
|
||||
######################
|
||||
# Properties
|
||||
######################
|
||||
@property
|
||||
def size(self):
|
||||
return len(self.content)
|
||||
|
@ -34,9 +28,6 @@ class Stack:
|
|||
def is_empty(self):
|
||||
return not bool(self.content)
|
||||
|
||||
######################
|
||||
# Public methods
|
||||
######################
|
||||
def push(self, value):
|
||||
if value < self.min:
|
||||
self.min = value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue