Combinations

Choosing without order, n choose k (C(n,k)), binomial coefficients, and Pascal triangle basics.

44 lessons
142 min
Codeforces: 1000-1500LeetCode: 1400-1700

Lessons

1. Intro

(The goal)

2m

2. When Order Doesn't Matter

(The core idea)

4m

3. Combinations vs Permutations

(The critical difference)

4m

4. The Combinations Formula

(C(n,k) defined)

3m

5. Why Divide by k!

(Removing duplicates)

3m

6. Example: C(6,2)

(Computing step by step)

3m

7. Example: C(10,3)

(Another computation)

3m

8. Symmetry: C(n,k) = C(n,n-k)

(Choosing vs leaving)

3m

9. Boundary Cases

(Edge values)

3m

10. Pascal's Triangle

(Visual representation)

4m

11. Building Pascal's Triangle

(Row by row)

4m

12. Pascal's Identity

(The recursive formula)

4m

13. Why Pascal's Identity Works

(Algebraic verification)

3m

14. Binomial Theorem

(Expanding (a+b)^n)

3m

15. Binomial Expansion Example

((x+y)^3)

3m

16. Counting Subsets

(Total is 2^n)

3m

17. Why 2^n Subsets

(Binary choice argument)

3m

18. Combinations with Repetition

(Stars and bars)

3m

19. Stars and Bars Method

(Visual explanation)

3m

20. Quiz: Basic Combinations

(Knowledge check)

2m1 problems

21. Combinatorial Identities

(Useful formulas)

3m

22. Hockey Stick Identity

(Diagonal sums)

4m

23. Quiz: Pascal's Triangle

(Knowledge check)

2m1 problems

24. Quiz: Advanced Combinations

(Final check)

2m1 problems

25. Real World Applications

(Where combinations appear)

3m

26. Computing Large Combinations

(Avoiding overflow)

4m

27. Combinations Modulo M

(For competitive programming)

4m

28. Combinations in Probability

(Counting outcomes)

4m

29. Problem - Combinations

Generate C(n,k)

2m1 problems

30. Combinations - Building Strategy

Choose or skip pattern

5m

31. Combinations - Implementation

The pseudocode

5m1 problems

32. Lessons from Combinations

summary

2m

33. Problem - Combination Sum

Target sum with reuse

2m1 problems

34. Combination Sum - Reuse Strategy

Same index or skip

4m

35. Combination Sum - Implementation

The pseudocode

5m1 problems

36. Lessons from Combination Sum

summary

2m

37. Problem - Subsets

All possible subsets

2m1 problems

38. Subsets - Include or Exclude

Decision tree approach

4m

39. Subsets - Implementation

The pseudocode

5m1 problems

40. Lessons from Subsets

summary

2m

41. Problem - Subsets II

Subsets with duplicates

2m1 problems

42. Subsets II - Insight

Skip duplicates

4m

43. Subsets II - Implementation

The pseudocode

5m1 problems

44. Section Recap

What we learned

2m

Ready to start learning?

Access all 44 lessons with interactive content and progress tracking.