Search
⌘K

Leetcode 2727. Is Object Empty

Given a parsed JSON value that is either an object or an array, determine whether it is empty (an object with no own keys or an array with zero elements). Aim to perform this emptiness check in O(1) time rather than iterating through the contents.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.