Google Senior Principal coding interview questions
These are the 14 coding questions YourAlly has tagged for Google at Senior Principal. Senior Principal is the common India title for this level. Google calls it L7, Senior Staff Software Engineer. YourAlly treats it as Senior staff, the same level as Meta E7 and Amazon L8.
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 coding is often a smaller part of the loop, but the bar for clarity and speed stays high.
Practice a mock Google Senior Principal coding loopPractice Google coding questions
Merge Two Sorted ListsFree to read
You are given the heads of two sorted linked lists list1 and list2. Merge the two lists in a one sorted list and return the head of the merged linked list.
Example 1: Input: list1 = [1,2,4], list2 = [1,3,4] Output: [1,1,2,3,4,4]
Example 2: Input: list1 = [], list2 = [] Output: []
Constraints: 0 <= number of nodes in list1, list2 <= 50000 -100000 <= Node.val <= 100000 Both list1 and list2 are sorted in non-decreasing order
13 more coding questions
- Binary Tree Level Order Traversal Locked
- Group Anagrams Locked
- Invert Binary Tree Locked
- Longest Substring Without Repeating Characters Locked
- Median of Two Sorted Arrays 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 Senior Principal rounds
- System design 16 questions
- Behavioral 36 questions
- Project retrospective 14 questions
Google coding at other levels
Other companies at this level
- Adobe Senior Principal 4 questions
- Amazon Senior Principal 6 questions
- Apple Senior Principal 7 questions
- Cisco Senior Principal 3 questions
- IBM Senior Principal 3 questions
- Intel Senior Principal 3 questions