Linked Lists and their Connection to Songs
linked blocks with arrows pointing in one direction
In a previous post on arrays, I wrote about arrays and how you can listen to them by storing sound. Linked lists are an extension of arrays that instead of just storing elements , they store pointers. Linked lists point to the next node which allow for dynamic memory allocation instead of contiguous memory allocation.
For example, a list of six elements would look like this: 1 -> 2 -> 3 -> 4 -> 5 -> 6.
Read more