There are two main approaches for implementing a queue: using an array or using a linked list. For every characteristic in the left column, mark the method to which it relates.
Queue
Array or list
Report a typo
Choose one option for each row
| Array | Linkedlist | |
|---|---|---|
| All elements are copied to a new data structure when memory overflows | ||
| Is limited by the size of the data structure | ||
| Uses dynamic memory | ||
| Comparatively more memory is required | ||
| Comparatively less memory is required |
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.