YourAlly

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

  1. Binary Tree Level Order Traversal Locked
  2. Group Anagrams Locked
  3. Invert Binary Tree Locked
  4. Longest Substring Without Repeating Characters Locked
  5. Median of Two Sorted Arrays Locked
  6. Serialize and Deserialize Binary Tree Locked
  7. Top K Frequent Elements Locked
  8. Trapping Rain Water Locked
  9. Two Sum Locked
  10. Valid Anagram Locked
  11. Word Ladder Locked
  12. Check if Palindrome Locked
  13. Contains Duplicate Locked

Sign up free to practice all 14

Related pages

More Google Senior Principal rounds

Google coding at other levels

Other companies at this level

Company guide

Google interview guide in Academy