YourAlly

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

  1. Group Anagrams Locked
  2. Invert Binary Tree Locked
  3. Longest Substring Without Repeating Characters Locked
  4. Median of Two Sorted Arrays Locked
  5. Merge k Sorted Lists Locked
  6. Merge Two Sorted Lists Locked
  7. Product of Array Except Self Locked
  8. Serialize and Deserialize Binary Tree Locked
  9. Trapping Rain Water Locked
  10. Two Sum Locked
  11. Valid Anagram Locked
  12. Check if Palindrome Locked
  13. Contains Duplicate Locked

Sign up free to practice all 14

Related pages

More Meta E5 rounds

Meta coding at other levels

Other companies at this level

Company guide

Meta interview guide in Academy