(self)
| 10 | def push(self, node): |
| 11 | self.stack1.append(node) |
| 12 | def pop(self): |
| 13 | if len(self.stack2) == 0 and len(self.stack1) == 0: |
| 14 | return |
| 15 | elif len(self.stack2) == 0: |
| 16 | while len(self.stack1) > 0: |
| 17 | self.stack2.append(self.stack1.pop()) |
| 18 | return self.stack2.pop() |
| 19 | |
| 20 | P = Solution() |
| 21 | P.push(10) |
no outgoing calls
no test coverage detected