Answer the question
In order to leave comments, you need to log in
Dynamic data structure. What is it?
In the requirements for one vacancy (junior) Dynamic data structure.
Quote from Prat S., page 189: "The tool for this, again, is the new operator. With it, you can create dynamic structures. Dynamic here again means allocating memory at run time, not at
compile time. By the way, since classes very similar to structs, you will be able to use the techniques learned for both structs and classes.". This is clear. Yandex also displays a lot of tasks / examples where dsd is applied to the Stack. As a result, we get structures and a stack. What else can be attributed to dsd?
Answer the question
In order to leave comments, you need to log in
dynamic structures. Dynamic here again means allocating memory at run time, not at compile time.
The tool for this, again, is the new operator.
A dynamic data structure is a data structure whose number of elements can change during a process. This concept has nothing to do with dynamic memory and new.
Stack, queue, deque, sequence, set, loaded set, L1 list, L2 list, dynamic vector, tree, hash table and others are all dynamic data structures.
But just a vector, a matrix - these are non-dynamic data structures, because the number of elements in them is fixed.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question