Spreadsheet / Formula Engine

Asked at Harvey · Coding Questions · Difficulty: Medium · Last asked Jul 2, 2026

Build a mini spreadsheet: set_cell(label, value) / get_cell(label), where a label is letters+digits (e.g. "A1"). Values are integers or +-only formulas referencing other cells; reads should be O(1), writes must propagate to dependents, and circular references must be detected and rejected.

Loading the problem…