Microsoft Staff coding interview questions
These are the 6 coding questions YourAlly has tagged for Microsoft at Staff. At Microsoft, this level is Principal Software Engineer, levels 65 and 66. YourAlly treats it as Staff (E6), the same level as Google L6, 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 Microsoft Staff coding loopPractice Microsoft coding questions
Find Dictionary Words in a Letter GridFree to read
A word game shows a grid of letters. A word is found if it can be traced through cells connected up, down, left or right, using each cell at most once per word. Return every dictionary word found, without duplicates, sorted ascending.
Input: board = ["oaan","etae","ihkr","iflv"], words = ["oath","pea","eat","rain"] Output: ["eat","oath"]
What a strong answer covers
- Trie of all dictionary words
- Single DFS per cell pruned by trie children
- In-place visited marking with restore
- Deduplication and sorted output
- States trie build, 3^(L-1) branching search and final sort in the total cost
5 more coding questions
- Evaluate a Spreadsheet Formula Locked
- Diff Two Config Maps Locked
- Merge Meeting Intervals Locked
- Serialize Nested Folders Locked
- Tenant-Aware LRU Cache Locked
Related pages
More Microsoft Staff rounds
- Behavioral 12 questions
Microsoft coding at other levels
- Senior 7 questions
- Senior staff 6 questions
- Senior EM 4 questions
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