4 ms·
I one time took a class that introduced every linked data structure (lists, trees, stacks, queues, etc) with statically allocated arrays. Only later did they sh
by jonathankoren 6y ago
I one time took a class that introduced every linked data structure (lists, trees, stacks, queues, etc) with statically allocated arrays. Only later did they show the dynamic memory implementations. I thought it was a bit weird at the time, but now I guess it was to get students to focus on the data structure, instead of worry about pointers.