Year 3Semester 5Data Structure

Data Structure

2 questions available

Q
Descriptive

What is a Data Structure?

A

A data structure is a specialized format for organizing, processing, retrieving, and storing data. Common examples include arrays, linked lists, stacks, queues, trees, and graphs.

Q
Descriptive

What is the difference between an Array and a Linked List?

A

Arrays store elements in contiguous memory locations with fixed size and O(1) random access. Linked Lists store elements with pointers to next elements, offering dynamic size and O(n) access but O(1) insertion/deletion.