October 2025
Intermediate to advanced
485 pages
13h 2m
English
In the previous chapter, you discovered that bit vectors can store a lot of data in an incredibly compact way. In fact, one could argue that bit vectors are the most compact of all data structures. So, if you’re looking to save space, bit vectors are an incredible tool.
However, you also learned that bit vectors are only useful in certain scenarios, specifically, where the data consists of integers that lie within a relatively short range. If you were to store integers in a large range or if you had other forms of data, such as strings, you wouldn’t be able to take advantage of the great space savings bit vectors afford.
Fortunately, there’s a variant of the bit vector that can handle even ...
Read now
Unlock full access