Data Structures, AlgorithmsComplexity Analysis & Big-O Notation

85 items

1

Reductions and Lower Bounds Direction

Quiz
2

The Hash-Set Trade-off That Wasn't

Code Quiz
3

Complexity Trade-offs & Problem Reduction

Slides / Video
4

Complexity Trade-offs & Problem Reduction

Flashcard
5

Duplicate Check with a Set

Code Quiz
6

Two-Sum Time/Space Trade-off Analysis

Quiz
7

Big-O Trade-offs in Real Code

Slides / Video
8

Trading Space for Time with Memoization

Flashcard
9

Hidden Quadratic Complexity Bug

Code Quiz
10

Amortized Complexity of Dynamic Array Append

Quiz
11

Understanding Big-O Notation

Quiz
12

Claimed O(n) Sum of Uniques

Code Quiz
13

Broken Memoization in Fibonacci

Code Quiz
14

Big-O Time/Space Trade-offs

Quiz
15

Big-O Time & Space Trade-offs

Slides / Video
16

Time/Space Trade-offs in Big-O Analysis

Flashcard
17

Finding Duplicates and Big-O

Code Quiz
18

Nested Loop Time & Space Complexity

Quiz
19

Off-by-One in Duplicate Check

Code Quiz
20

Big-O of a Simple Loop

Quiz
21

Big-O Notation Basics

Slides / Video
22

Big-O Notation Basics

Flashcard
23

Big-O for Time and Space

Slides / Video
24

Big-O Time & Space Basics

Flashcard
25

Big-Omega Notation

Flashcard
26

Linearithmic Time O(n log n)

Flashcard
27

Constant Time O(1)

Quiz
28

Linearithmic Time O(n log n)

Quiz
29

Counting Basic Operations

Quiz
30

Exponential Time O(2^n)

Quiz
31

Complexity of a Single Loop

Quiz
32

Quadratic Time O(n^2)

Quiz
33

Sequential Code Blocks

Quiz
34

Dropping Constants

Quiz
35

Ordering Complexity Classes

Quiz
36

How Runtime Scales

Quiz
37

Input Size Drives Complexity

Quiz
38

Logarithmic Time O(log n)

Quiz
39

Dropping Lower-Order Terms

Quiz
40

Linear Time O(n)

Quiz
41

Complexity of Nested Loops

Quiz
42

What Complexity Analysis Is and Why It Matters

Slides / Video
43

Using Complexity to Compare Algorithms

Slides / Video
44

Best, Average, and Worst Case

Slides / Video
45

Space Complexity Basics

Slides / Video
46

Analyzing Nested Loops for Time Complexity

Slides / Video
47

Analyzing Simple Loops for Time Complexity

Slides / Video
48

Dropping Constants and Lower-Order Terms

Slides / Video
49

Ranking Common Complexity Classes

Slides / Video
50

Single Loop Linear Time

Code Quiz
51

Worst Case Of Linear Search

Code Quiz
52

Space Complexity Of Copy

Code Quiz
53

Dropping Constants In Big-O

Code Quiz
54

Halving Loop Logarithmic Time

Code Quiz
55

Constant Time Array Access

Code Quiz
56

Two Input Variables

Code Quiz
57

Nested Loops Quadratic Time

Code Quiz
58

Sort Then Loop Complexity

Code Quiz
59

Summing Sequential Loops

Code Quiz
60

Ordering Growth Rates

Code Quiz
61

Loop With Doubling Step

Code Quiz
62

Common Big-O Complexity Classes

Slides / Video
63

Big-O as an Upper Bound

Slides / Video
64

Definition and Intuition of Big-O Notation

Slides / Video
65

Complexity of Nested Loops

Flashcard
66

Factorial Time O(n!)

Flashcard
67

Why We Focus on Worst Case

Flashcard
68

Big-Theta Notation

Flashcard
69

Logarithmic Time O(log n)

Flashcard
70

Dropping Lower-Order Terms

Flashcard
71

Dropping Constants in Big-O

Flashcard
72

Complexity of Single Loops

Flashcard
73

Counting Operations

Flashcard
74

Linear Time O(n)

Flashcard
75

Quadratic Time O(n^2)

Flashcard
76

Big-O Formal Notation and Meaning

Flashcard
77

Constant Time O(1)

Flashcard
78

Exponential Time O(2^n)

Flashcard
79

Auxiliary Space vs Total Space

Flashcard
80

Sequential Statements (Addition)

Flashcard
81

Best, Average, and Worst Case

Flashcard
82

Comparing Growth Rates

Flashcard
83

How Runtime Grows as Input Grows

Slides / Video
84

Input Size n: The Basis of Analysis

Slides / Video
85

Counting Operations to Estimate Cost

Slides / Video
Quiz

Nested Loop Time & Space Complexity

Analyze the time and space complexity of a function that builds a 2D matrix using nested loops.

A function takes an array of size n and creates an n x n matrix, filling each cell by summing a pair of elements. What are its time and space complexities?