47 Fibonacci (memoized) Easy Base + Memo

Compute the nth Fibonacci number without redundantly recalculating the same sub-values.

O(n) time · O(n) space (memo) / O(1) space (iter)
48 Factorial Easy Base + Reduce

Compute n factorial (n x (n-1) x ... x 1) using recursion.

O(n) time · O(n) space
49 Power x^n (fast exponentiation) Medium Halve Exponent

Compute x raised to the power n efficiently by squaring halves instead of multiplying one at a time.

O(log n) time · O(log n) space
50 Generate all subsets Medium Include / Exclude

Generate every possible subset of a list of elements (the power set).

O(2^n) time · O(2^n) space