← Google questions
CodingReported in a candidate post, Nov 2023

Find difference between two JSON documents and reconstruct

Filed under Google

Implement two functions: diff(doc1, doc2) to compute the recursive differences between two JSON-serializable dictionaries/values, and reconstruct(doc1, diff) that applies the diff to doc1 to yield…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Google questions

Collected from public candidate posts and coding forums. Updated Nov 2026.