Object-Oriented Programming · OpenAI · Medium
Build a simplified Spreadsheet that understands formulas. Cells are named with Excel-style A1 notation, matching the pattern [A-Z]+[1-9][0-9]* (for instance A1, Z99, AA10). A cell that has never been assigned holds the value 0. The following operations must be supported: setCell(cell, value): store value as the raw content of cell. value can be an integer string, such as "42" or "-3"; or it can be a formula that starts with =, such as "=A1+B2-5". getCell(cell): return the…