Search⌘ K
AI Features

Nested List Weight Sum II

Nested List Weight Sum II gives a nested list of integers and lists. Return the sum of each integer multiplied by a weight equal to its distance from the deepest level plus one.

Statement

Given a nested list of integers, nested_list, where each element can either be an integer ...