Uber·Software Engineer·Technical Phone Screen
- Given two JSON-like records that can contain scalars, lists, and nested objects, write a function to determine if they are deeply equal. Scalar equality must be type-strict (so 1 and "1" are not equal), list equality is order-sensitive, and object equality ignores key order.
“Recursion was the obvious move and I got there quickly, but I fumbled the scalar type-checking part at first.”