Conceptually, sets are simpler than sequences. The reason we took sequences first, though, is that we can implement sets in different ways to make operations more efficient, and some of these implementations are more complicated than the linked list data structure we made in the previous chapter.
14. Sets
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.