Mini Spreadsheet with Eager Evaluation and Cycle Detection

Problem

Implement a mini spreadsheet with these interfaces:

  • set_cell(label, value): assign an integer or formula to a cell.
  • get_cell(label): return the cell's current integer value.

The ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: