Skip to content

Commit 4e72194

Browse files
authored
fix: typo
1 parent 033c7f9 commit 4e72194

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

courses/algorithms/02-analysis/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Before starting, lets thin about 3 problems:
44

5-
For an array of size N, dont overthink. think and answer:
5+
For an array of size $N$, dont overthink. Just answer:
66

77
1. How many iterations a loop run to find a specific number inside an array? (naively)
88
2. How many comparisons should I make to find two numbers in an array that sum a specific target? (naively)
@@ -119,7 +119,7 @@ To simplify, we remove the constants and the lower order terms:
119119

120120
## Common Big Os
121121

122-
!!! note inline end "Log"
122+
!!! note inline end "Logarithm"
123123

124124
In computer science, when we say log, assume base 2, unless expressely stated;
125125

@@ -133,7 +133,7 @@ To simplify, we remove the constants and the lower order terms:
133133
| O(c^n) | Exponential | brute force password of size n |
134134
| O(n!) | factorial | list all combinations |
135135

136-
### What is log?
136+
### What is logarithm?
137137

138138
Log is the inverse of exponentiation. It is the number of times you have to multiply a number by itself to get another number.
139139

@@ -163,4 +163,4 @@ In a binary search, we commonly divide the array in half (base 2), and check if
163163
## Common Issues and misconceptions
164164

165165
- Big O and Theta are commonly mixed;
166-
- Hashtables: it is commonly assumed that queries on <map> or <set> being O(1); std:: `<map>` and `<set>` are not the ideal implementation! [Watch this CppCon video](https://www.youtube.com/watch?v=ncHmEUmJZf4) for some deep level insights;
166+
- Hashtables: it is commonly assumed that queries on `<map>` or `<set>` being `O(1)`; std:: `<map>` and `<set>` are not the ideal implementation! [Watch this CppCon video](https://www.youtube.com/watch?v=ncHmEUmJZf4) for some deep level insights;

0 commit comments

Comments
 (0)