Product
Pricing
Blog
Forum
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
AI Insights
Quick Summary
Implement a simplified spreadsheet class that stores cell values and evaluates simple two-term formulas.
Formulas reference other cells or numeric literals and are evaluated dynamically on each getCell call.
Results must be computed fresh per call without persisting intermediate states across invocations.
What This Tests
Dependency resolution using graph traversal
Hash map based storage and lookup
Recursive evaluation with per-call memoization
String parsing and tokenization
Common Patterns
Graph Traversal
DFS/BFS
Hashing
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Report
Report seen similar question in interview
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
python
Auto
Debug
Run
Submit
Test Cases
Input
Output
Expected