Meta E5 coding interview questions
These are the 14 coding questions YourAlly has tagged for Meta at E5. Meta E5 is Senior Software Engineer. YourAlly treats it as Senior, the same level as Google L5 and Amazon L6.
A coding round at a large tech company usually runs 45 to 60 minutes with one or two problems. You write code that runs, test it on your own examples and state its time and space cost. At this level the bar is a correct, tested solution you reach mostly on your own, with the trade-offs said out loud.
Practice a mock Meta E5 coding loopPractice Meta coding questions
Binary Tree Maximum Path SumFree to read
A path in a binary tree is a sequence of nodes where each pair of adjacent nodes in the sequence has an edge connecting them. A node can only appear in the sequence at most once. The path does not need to pass through the root. Return the maximum path sum of any non-empty path.
Example 1: Input: root = [1,2,3] Output: 6 Explanation: The path 2 -> 1 -> 3 has sum 6.
Example 2: Input: root = [-10,9,20,null,null,15,7] Output: 42 Explanation: The path 15 -> 20 -> 7 has sum 42.
Constraints: 1 <= number of nodes <= 200000 -1000 <= Node.val <= 1000
13 more coding questions
- Group Anagrams Locked
- Invert Binary Tree Locked
- Longest Substring Without Repeating Characters Locked
- Median of Two Sorted Arrays Locked
- Merge k Sorted Lists Locked
- Merge Two Sorted Lists Locked
- Product of Array Except Self Locked
- Serialize and Deserialize Binary Tree Locked
- Trapping Rain Water Locked
- Two Sum Locked
- Valid Anagram Locked
- Check if Palindrome Locked
- Contains Duplicate Locked
Related pages
More Meta E5 rounds
- System design 12 questions
- Behavioral 28 questions
- Project retrospective 14 questions
Meta coding at other levels
Other companies at this level
- Adobe Senior 7 questions
- Airbnb Senior 4 questions
- Amazon L6 10 questions
- Anthropic Senior 6 questions
- Apple Senior 7 questions
- Cisco Senior 6 questions