← Whiteboard questions

Pattern

Math & Geometry

These problems turn on a pattern in numbers or in a grid, such as digits, rotations or powers. Work a small case by hand, look for something that never changes, then find a rule that avoids simulating every step. Many need only O(1) extra memory.

Math & Geometry interview questions and solutions