New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
OpenAI
Coding Question
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
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Auto
Debug
Run
Submit
Test Cases
Input
Output
Expected