Google L5 coding interview questions
These are the 14 coding questions YourAlly has tagged for Google at L5. Google L5 is Senior Software Engineer. YourAlly treats it as Senior, the same level as Meta E5 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 Google L5 coding loopPractice Google coding questions
Binary Tree Level Order TraversalFree to read
Given the root of a binary tree, return the level order traversal of its nodes' values. (i.e., from left to right, level by level).
Example 1: Input: root = [3,9,20,null,null,15,7] Output: [[3],[9,20],[15,7]]
Example 2: Input: root = [] Output: []
Constraints: 0 <= 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 Two Sorted Lists Locked
- Serialize and Deserialize Binary Tree Locked
- Top K Frequent Elements Locked
- Trapping Rain Water Locked
- Two Sum Locked
- Valid Anagram Locked
- Word Ladder Locked
- Check if Palindrome Locked
- Contains Duplicate Locked
Related pages
More Google L5 rounds
- System design 12 questions
- Behavioral 24 questions
- Project retrospective 14 questions
Google 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