Design a Spreadsheet with Dependent Cells (set_cell / get_cell)

Asked at Character AI · Coding Questions · Difficulty: Medium

Implement a spreadsheet whose cells either hold an integer or sum other cells, and evaluate cells on demand with cycle detection.

Loading the problem…