結合數學推理和幾何性質來解題。包含模運算、矩陣操作、座標幾何等主題。
Notes:
- 矩陣旋轉和螺旋遍歷是常見的面試題
- 數學題常需要找規律或利用數論性質
- 注意整數溢位問題
#6
Zigzag Conversion
#9
Palindrome Number
#12
Integer to Roman
#13
Roman to Integer
#43
Multiply Strings
#48
Rotate Image
#50
Pow(x, n)
#54
Spiral Matrix
#59
Spiral Matrix II
#66
Plus One
#73
Set Matrix Zeroes
#149
Max Points on a Line
#168
Excel Sheet Column Title
#202
Happy Number
#263
Ugly Number
#1041
Robot Bounded In Circle
#1071
Greatest Common Divisor of Strings
#1260
Shift 2D Grid
#1523
Count Odd Numbers in an Interval Range
#1572
Matrix Diagonal Sum
#2013
Detect Squares
#2028
Find Missing Observations