July 2024
Beginner to intermediate
280 pages
7h 25m
English
In this chapter
In chapter 5, we discussed how static arrays have a weak spot when it comes to flexibility. Dynamic arrays may give us an illusion of flexibility, but, unfortunately, they are not a different (and flexible) data structure. They are just a strategy to resize static arrays as efficiently as possible. As discussed, the ability to resize arrays comes at a cost—slower insertion and deletion.
This chapter discusses yet another way of having a data ...
Read now
Unlock full access