Nested List Weight Sum II

Given a nested list of integers nestedList, each element is either an integer or another nested list.

The inverse depth weight of an integer is defined as:

maximum nesting depth - inte...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: