Data Structures Study Notes
=================================
Author: ChatGPT Learning Notes
Date: 2025-08-09
1. Introduction
------------------------
Data structures are ways of organizing and storing data to perform operations
efficiently.
2. Types of Data Structures
------------------------
- Linear: Arrays, Linked Lists, Stacks, Queues
- Non-linear: Trees, Graphs
3. Arrays
------------------------
An array is a collection of elements stored at contiguous memory locations.
Example in Java:
```java
int[] numbers = {1, 2, 3, 4, 5};
```
4. Linked Lists
------------------------
A linked list is a sequence of nodes where each node contains data and a pointer to
the next node.
5. Trees
------------------------
Trees are hierarchical data structures with a root node and child nodes.
Example: Binary Search Tree (BST)