Pc Science
Pc Science
**MergeSort**
- **Time Complexity:** O(n log n) always
- **How it works:**
1. Split array in half.
2. Recursively sort each half.
3. Merge the two halves.
## **Practice Problems**
1. Implement a stack using a linked list.
2. Sort `[5, 2, 9, 1]` using QuickSort step-by-step.
3. Perform BFS on a given graph starting from node A.