July 2024
Beginner to intermediate
280 pages
7h 25m
English
In this chapter
In chapter 2, we introduced static arrays, and you learned how to use them as containers to hold elements without worrying about the element’s order. In this chapter, we take the next step: keeping the array elements sorted. There are good reasons for ordering arrays, such as domain requirements or to make some operations on the array faster. Let’s discuss an example that shows the tradeoffs and where we can get an advantage by keeping the element of an array in order.
In the previous chapter, we looked at arrays ...
Read now
Unlock full access