Leetcode 339. Nested List Weight Sum
Given a nested list of integers and sublists, compute the total sum where each integer is multiplied by its depth in the nesting. The challenge is to traverse the arbitrarily nested structure and accumulate value*depth for each integer (track depth via recursion or an explicit stack/queue).
Asked at:
Meta
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Mid September, 2025
Meta
Mid-level
Late August, 2025
Meta
Senior
Late August, 2025
Meta
Senior
Your account is free and you can post anonymously if you choose.