Basic Algebra

Variables, solving equations, substitution, inequalities, and when the inequality sign flips. The language of algorithms.

46 lessons
149 min
Codeforces: 800-1100LeetCode: 1200-1400

Lessons

1. Intro

The Goal

2m

2. What is a Variable?

Representing unknowns

3m

3. Vocabulary - Expression

Combination of numbers and variables

3m

4. Vocabulary - Equation

Statement of equality

3m

5. Balancing Equations

The golden rule

3m

6. Solving Linear Equations

Isolating the variable

4m

7. Quiz: Solving Equations

Knowledge check

2m1 problems

8. Substitution

Replacing variables with values

3m

9. Combining Like Terms

Simplifying expressions

3m

10. The Distributive Property

Expanding expressions

3m

11. Factoring Basics

Reverse of distribution

3m

12. Quiz: Simplification

Knowledge check

2m1 problems

13. Inequalities

Greater than and less than

4m

14. Why Flip the Sign?

Negative multiplication rule

3m

15. The Quadratic Formula

Solving quadratic equations

4m

16. Vocabulary - Discriminant

Determining solution count

3m

17. Systems of Equations

Multiple equations together

3m

18. Solving by Substitution

Replace one variable

4m

19. Solving by Elimination

Adding or subtracting equations

4m

20. Quiz: Systems of Equations

Knowledge check

2m1 problems

21. Problem - Two Sum

LeetCode 1

3m1 problems

22. Two Sum - The Equation

What you're solving

3m

23. Two Sum - Hash Map Approach

Efficient lookup

3m

24. Two Sum - Implementation

In pseudocode

4m1 problems

25. Lessons from Two Sum

summary

3m

26. Problem - Valid Perfect Square

LeetCode 367

3m1 problems

27. Valid Perfect Square - The Equation

What you're checking

3m

28. Valid Perfect Square - Binary Search

Narrowing the range

4m

29. Valid Perfect Square - Implementation

In pseudocode

4m1 problems

30. Lessons from Valid Perfect Square

summary

3m

31. Problem - Container With Most Water

LeetCode 11

3m1 problems

32. Container - The Formula

Maximizing area

3m

33. Container - Two Pointer Strategy

Greedy approach

4m

34. Container - Why Two Pointers Work

Proof sketch

4m

35. Container - Implementation

In pseudocode

4m1 problems

36. Lessons from Container

summary

3m

37. Algebra in Complexity Analysis

Simplifying runtime formulas

4m

38. Recurrence Relations

Recursive algorithm analysis

4m

39. Isolating Variables in Loops

Finding loop bounds

4m

40. Quiz: Complexity Analysis

Knowledge check

2m1 problems

41. Manipulating Inequalities

Proving bounds

4m

42. Common Algebraic Patterns in CP

Formulas you'll see often

4m

43. Practice - Missing Number

LeetCode 268

3m1 problems

44. Practice - Sqrt(x)

LeetCode 69

3m1 problems

45. Practice - Maximum Subarray

LeetCode 53

3m1 problems

46. Section Recap

What we learned

3m

Ready to start learning?

Access all 46 lessons with interactive content and progress tracking.