You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: notes/data_structures.md
+1-50Lines changed: 1 addition & 50 deletions
Original file line number
Diff line number
Diff line change
@@ -7,56 +7,7 @@ In computer science, a _collection_ (often interchangeably referred to as a _con
7
7
8
8
Every developer should really get to know collections well. It helps you pick the right type of collection for the job, making your code faster, more efficient, and easier to manage in the long run.
9
9
10
-
```mermaid
11
-
flowchart TD
12
-
Start((Start))
13
-
Start --> OrderImportant{Order is Important?}
14
-
15
-
%% Order‐important branch
16
-
OrderImportant -- yes --> LIFO{Last In, First Out?}
17
-
LIFO -- yes --> stack[stack]
18
-
LIFO -- no --> FIFO{First In, First Out?}
19
-
FIFO -- yes --> queue[queue]
20
-
FIFO -- no --> BestIn{Best In, First Out?}
21
-
BestIn -- yes --> priority_queue[priority_queue]
22
-
BestIn -- no --> KeepSorted{Keep Sorted Elements?}
23
-
24
-
KeepSorted -- yes --> MainPurpose{Main Purpose}
25
-
KeepSorted -- no --> InsertMiddle{Insert/erase at middle?}
0 commit comments