Loading tutorials
push, pop, peek, and is_empty, with pop and peek raising IndexError on an empty stack. You should also be comfortable with Python classes, lists, and object references.2 min readStack interface and its two implementations, ListStack and LinkedStack, from earlier chapters. It also assumes you can read Python classes and exceptions.2 min readStack interface and the ListStack and LinkedStack implementations from earlier chapters. Here you will see which language features let you state an ADT's interface and keep its representation private3 min readStack, ListStack, and LinkedStack classes from the earlier chapters. Here you compare the two implementations by cost and pick one without touching client code.2 min read