My note
- Correctness
- Efficiency
Data Structure: How to organize Algorithm: How to fetch data
- Primitive Data structures
- Integer
- Float
- Float
- Character
- String
- Boolean
- Non-Primitive Data Structures
- Linear
- Static
- Array
- Dynamic
- Linked List
- Stack
- Queue
- Non Linear
- Tree
- Graph
- Non Linear
- Simple recursive
- Divide and conquer
- Dynamic programming
- Greedy
- Brute force
- Randomized
- Sorting
- Dynamic Programming
- BFS + DFS (Searching)
- Recursion
CPU - Runs the application RAM - You loose data when you power off the computer Storage - Data is persistent
A data structure is an arrangement of data that is used to represent a particular problem.
The reason why we use array to look up data or for most data structures is that it is very fast and we already know the position of the data.
[x] lookup O(1) [x] insert O(n) [x] delete O(n) [x] push O(1) [x] pop O(1)
- Reference Type
- Context 'This is often confused with scope' 'Scope is created with a curly brace'
- Instantiation 'Creating an object'