LeetCode Question · Feb 2020 · Los Angeles

Facebook | Phone | Nested List Weight Sum

3 upvotes 3,259 views 7 replies

Question Details

Position: Summer SWE Intern Question: (premium) Input: [8, 4, [5, [9], 3], 6] Output: 8+4+2(5+3(9) + 3)+6 ==> 88 Add every element in each list and multiply them by the depth of the list. Language:...

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

General Experience