This commit is contained in:
Dmitry Belyaev 2024-04-17 12:01:38 +03:00
parent 5ce4f0565f
commit f9d8ec192b

View File

@ -145,7 +145,7 @@ class Stack:
self.validate_index(idx) self.validate_index(idx)
if idx == len(self): if idx == len(self):
self.push(value) self.push_back(value)
return return
prev = self.top prev = self.top