117 Rotate Image Medium Transpose + Reverse

Rotate a square grid of numbers 90 degrees clockwise without using extra space.

O(n^2) time · O(1) space
118 Spiral Matrix Medium Boundary Walk

Walk around a matrix in a spiral from the outside in, collecting elements.

O(m*n) time · O(1) space (excluding output)
119 Set Matrix Zeroes Medium In-place Markers

If any cell in a grid is zero, zero out its entire row and column.

O(m*n) time · O(1) space
120 Happy Number Easy Cycle Detection

Keep replacing a number with the sum of the squares of its digits. It's happy if you eventually reach 1.

O(log n) time · O(1) space
121 Pow(x, n) Medium Fast Exponentiation

Compute x to the power n efficiently, handling negative exponents too.

O(log n) time · O(1) space
122 Multiply Strings Medium Grade School Multiply

Multiply two large numbers given as strings without using built-in big integer conversion.

O(n*m) time · O(n+m) space