Google Principal coding interview questions
These are the 14 coding questions YourAlly has tagged for Google at Principal. Principal is the common India title for this level. Google calls it L6, 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 Principal coding loopPractice Google coding questions
Longest Substring Without Repeating CharactersFree to read
Given a string s, find the length of the longest substring without repeating characters. Example 1: Input: s = "abcabcbb" Output: 3 Explanation: The longest substring is "abc". Example 2: Input: s = "bbbbb" Output: 1 Example 3: Input: s = "pwwkew" Output: 3 Explanation: The answer is "wke". Constraints: 1 <= s.length <= 10^5
13 more coding questions
- Binary Tree Level Order Traversal Locked
- Group Anagrams Locked
- Invert Binary Tree 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 Principal rounds
- System design 16 questions
- Behavioral 40 questions
- Project retrospective 14 questions
Google coding at other levels
- SDE-3 14 questions
- Senior Principal 14 questions
- Senior EM 14 questions
Other companies at this level
- Adobe Principal 4 questions
- Amazon Principal 6 questions
- Apple Principal 7 questions
- Cisco Principal 3 questions
- IBM Principal 3 questions
- Intel Principal 3 questions