YourAlly

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

  1. Evaluate a Spreadsheet Formula Locked
  2. Diff Two Config Maps Locked
  3. Merge Meeting Intervals Locked
  4. Serialize Nested Folders Locked
  5. Tenant-Aware LRU Cache Locked

Sign up free to practice all 6

Related pages

More Microsoft Staff rounds

Microsoft coding at other levels

Other companies at this level

Company guide

Microsoft interview guide in Academy