mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-04-29 20:26:07 -04:00
Update README.md
This commit is contained in:
parent
a8e6ec8884
commit
27bc931a53
@ -33,17 +33,10 @@ class Stack:
|
||||
self.min = prior_min
|
||||
return val
|
||||
|
||||
return False
|
||||
|
||||
def top(self) -> int:
|
||||
if self.stack:
|
||||
return self.stack[-1][0]
|
||||
|
||||
return False
|
||||
|
||||
def get_min(self) -> int:
|
||||
if self.stack:
|
||||
return self.min
|
||||
|
||||
return False
|
||||
return self.min
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user