Daily challenge for 2026-05-11
496. Maximum Depth of Nested Objects
Given a nested object (dictionary in Python, object in JavaScript), find the maximum depth of nesting. A flat object with no nested objects has a depth of 1. If the object is empty, the depth is 0. Only consider nested objects as depth levels; ignore arrays or other types for depth calculation.
Example:Input: obj = {"a": {"b": {"c": 1}}}Output: 3
Run this challenge interactively in Python or JavaScript when the app loads.