Nested List Weight Sum:
You are given a nested list of integers nestedList. Each element is either an integer or a list whose elements may also be integers or other lists.
The depth of an integer is the number of lists that it is inside of. For example, the nested list [1,[2,2],[[3],2],1] has each integer's value set to its depth.
Return the sum of each integer in nestedList multiplied by its depth.
Interview questions [1]
Question 1
You are given a nested list of integers nestedList. Each element is either an integer or a list whose elements may also be integers or other lists.
The depth of an integer is the number of lists that it is inside of. For example, the nested list [1,[2,2],[[3],2],1] has each integer's value set to its depth.
Return the sum of each integer in nestedList multiplied by its depth.
I applied through a recruiter. I interviewed at Meta (Menlo Park, CA)
Interview
A standard interview process with 2 rounds. A technical round of 2 Leetcode style problems and a round of technical, system design, and behavioral. Pretty standard and the recruiter went into most of the details beforehand, as well as giving ample time to prepare.
Easy leetcode mediums, behavioral is basically just practice of your STAR conversational so nothing crazy. The bar for hiring is getting lower hence why they layoff the bottom 10-20% every year
Top companies for "Compensation and Benefits" near you