2075 7

CSC211 ยท 2075 ยท 5 marks

What are benifits of using linked list over array? How can you insert a node in a singly linked list?

What are benifits of using linked list over array? How can you insert a node in a singly linked list? [5]

Data Structures and AlgorithmsChapter 5: ListsBasic operations in Linked List

--- Feature Linked List Array --------- Size Dynamic, grows/shrinks at runtime Fixed size, declared at compile time Insertion/Deletion Efficient (no shifting needed) Requires shifting of elements Memory Allocates memory as needed May waste memory if unused Implementation Flexible for stacks, queu...