Explore Library
Data Structures, AlgorithmsComplexity Analysis & Big-O Notation

61 items

1

Big-Omega Notation

Flashcard
2

Linearithmic Time O(n log n)

Flashcard
3

Quadratic Time O(n^2)

Quiz
4

Sequential Code Blocks

Quiz
5

Constant Time O(1)

Quiz
6

Linear Time O(n)

Quiz
7

Logarithmic Time O(log n)

Quiz
8

Linearithmic Time O(n log n)

Quiz
9

Exponential Time O(2^n)

Quiz
10

Ordering Complexity Classes

Quiz
11

Counting Basic Operations

Quiz
12

Dropping Constants

Quiz
13

Dropping Lower-Order Terms

Quiz
14

Complexity of a Single Loop

Quiz
15

Complexity of Nested Loops

Quiz
16

Input Size Drives Complexity

Quiz
17

How Runtime Scales

Quiz
18

What Complexity Analysis Is and Why It Matters

Slides / Video
19

Using Complexity to Compare Algorithms

Slides / Video
20

Best, Average, and Worst Case

Slides / Video
21

Space Complexity Basics

Slides / Video
22

Analyzing Nested Loops for Time Complexity

Slides / Video
23

Analyzing Simple Loops for Time Complexity

Slides / Video
24

Dropping Constants and Lower-Order Terms

Slides / Video
25

Ranking Common Complexity Classes

Slides / Video
26

Sort Then Loop Complexity

Code Quiz
27

Halving Loop Logarithmic Time

Code Quiz
28

Nested Loops Quadratic Time

Code Quiz
29

Constant Time Array Access

Code Quiz
30

Single Loop Linear Time

Code Quiz
31

Loop With Doubling Step

Code Quiz
32

Worst Case Of Linear Search

Code Quiz
33

Space Complexity Of Copy

Code Quiz
34

Two Input Variables

Code Quiz
35

Summing Sequential Loops

Code Quiz
36

Ordering Growth Rates

Code Quiz
37

Dropping Constants In Big-O

Code Quiz
38

Common Big-O Complexity Classes

Slides / Video
39

Big-O as an Upper Bound

Slides / Video
40

Definition and Intuition of Big-O Notation

Slides / Video
41

Logarithmic Time O(log n)

Flashcard
42

Quadratic Time O(n^2)

Flashcard
43

Dropping Lower-Order Terms

Flashcard
44

Complexity of Nested Loops

Flashcard
45

Auxiliary Space vs Total Space

Flashcard
46

Factorial Time O(n!)

Flashcard
47

Best, Average, and Worst Case

Flashcard
48

Dropping Constants in Big-O

Flashcard
49

Comparing Growth Rates

Flashcard
50

Sequential Statements (Addition)

Flashcard
51

Big-Theta Notation

Flashcard
52

Why We Focus on Worst Case

Flashcard
53

Big-O Formal Notation and Meaning

Flashcard
54

Linear Time O(n)

Flashcard
55

Counting Operations

Flashcard
56

Constant Time O(1)

Flashcard
57

Complexity of Single Loops

Flashcard
58

Exponential Time O(2^n)

Flashcard
59

How Runtime Grows as Input Grows

Slides / Video
60

Input Size n: The Basis of Analysis

Slides / Video
61

Counting Operations to Estimate Cost

Slides / Video
Code QuizBeginner

Sort Then Loop Complexity

Fix the incorrect Big-O for a sort followed by a linear scan.

Codejavascript
function process(arr) {
  // Time complexity: O(n)
  arr.sort((a, b) => a - b);
  for (let i = 0; i < arr.length; i++) {
    console.log(arr[i]);
  }
}

What is the bug in this code's complexity annotation?