Append an item without enforcing order. Args: item: The value to append.
(self, item: int)
| 40 | return self.items == [] |
| 41 | |
| 42 | def _push_direct(self, item: int) -> None: |
| 43 | """Append an item without enforcing order. |
| 44 | |
| 45 | Args: |
| 46 | item: The value to append. |
| 47 | """ |
| 48 | self.items.append(item) |
| 49 | |
| 50 | def push(self, item: int) -> None: |
| 51 | """Push an item while maintaining sorted order. |