commented print statements

This commit is contained in:
Jacob Delgado 2023-09-26 21:16:21 -07:00
parent 85db2d73d0
commit febbbd72d3

View File

@ -8,22 +8,22 @@ class MinStack(object):
else:
mn = min(self.stack[-1][1], val)
self.stack.append((val, mn))
print(self.stack)
# print(self.stack)
def pop(self):
if self.stack:
print(self.stack)
# print(self.stack)
self.stack.pop()
def top(self):
if self.stack:
print(self.stack)
# print(self.stack)
return self.stack[-1][0]
return 0
def getMin(self):
if self.stack:
print(self.stack)
# print(self.stack)
return self.stack[-1][1]
return 0