The first abstract data structure we will implement is sequences. We already know this data type because we have it built into Python as lists, but we will make our own implementations now. You are unlikely to need your own implementations of sequences, although there are alternative implementations where there are different trade-offs to the operations. Python’s implementation is efficient and easy to use, and there is no need to implement something you already have readily available. There is, however, good reason ...
13. Sequences
Get Introduction to Computational Thinking: Problem Solving, Algorithms, Data Structures, and More now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.