Leetcode 2628. JSON Deep Equal
Given two JSON values, determine if they are deeply equal by recursively checking that primitives match, arrays have equal elements in the same order, and objects contain the same keys with deeply equal values regardless of key order. Types must match at each node and the comparison should handle arbitrarily nested structures.
Asked at:
Amazon
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Early March, 2026
Amazon
Mid-level
Question very similar to JSON-equal. Given two nested lists that can contain list, hashmap, string, and integer datatypes, check whether the two are equal. Solved using DFS. Follow up question was on DFS stack overflow and how to modify the solution to avoid it.
Hello Interview Premium
Your account is free and you can post anonymously if you choose.