Google L6 coding interview questions
These are the 14 coding questions YourAlly has tagged for Google at L6. Google L6 is Staff Software Engineer. YourAlly treats it as Staff (E6), the same level as Meta E6 and Amazon L7.
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 interviewers also expect clean code quickly and edge cases you raise before they do.
Practice a mock Google L6 coding loopPractice Google coding questions
Invert Binary TreeFree to read
Given the root of a binary tree, invert the tree (mirror it), and return its root.
Example 1: Input: root = [4,2,7,1,3,6,9] Output: [4,7,2,9,6,3,1]
Example 2: Input: root = [2,1,3] Output: [2,3,1]
Constraints: 0 <= number of nodes <= 200000 -100 <= Node.val <= 100
13 more coding questions
- Binary Tree Level Order Traversal Locked
- Group Anagrams 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 L6 rounds
- System design 16 questions
- Behavioral 40 questions
- Project retrospective 14 questions
Google coding at other levels
Other companies at this level
- Adobe Staff 4 questions
- Airbnb Staff 4 questions
- Amazon L7 6 questions
- Anthropic Staff 5 questions
- Apple Staff 7 questions
- Cisco Staff 3 questions