Cursor logoCursor
CodingMembers

Serialize/Deserialize Objects with Circular References

Members only

A phone-screen coding question at Cursor about turning an arbitrary object graph into JSON and back. The tricky part is that a naive approach either never terminates or quietly changes the structure of the data.

SWE
serialization
json
graph
hashmap
recursion
python
medium
Frequency
Single report
Last asked
—
Stage
phone-screen

Members get

  • Full problem statement
  • 3 progressive hints
  • Step-by-step approach
  • Full solution with code
  • 4 common pitfalls
  • 5 talking points
  • 5 follow-up questions with answer directions
  • Preparation drills

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...