Microsoft Senior coding interview questions
These are the 7 coding questions YourAlly has tagged for Microsoft at Senior. At Microsoft, this level is Senior Software Engineer, levels 63 and 64. YourAlly treats it as Senior, the same level as Google L5, Meta E5 and Amazon L6.
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 the bar is a correct, tested solution you reach mostly on your own, with the trade-offs said out loud.
Practice a mock Microsoft Senior coding loopPractice Microsoft coding questions
Evaluate a Spreadsheet FormulaFree to read
Evaluate a spreadsheet formula string with non-negative integers, +, -, *, /, parentheses, unary minus and spaces. Use normal precedence, left-to-right associativity and integer division that truncates toward zero. Return the integer result.
Input: formula = "2+3*4" Output: 14
What a strong answer covers
- Grammar with expression, term and factor levels
- Left associativity via loops
- Unary minus handled at factor level
- Truncation toward zero for negative division
- O(n) time
6 more coding questions
- Fewest Conference Rooms for Meetings Locked
- Find Dictionary Words in a Letter Grid Locked
- Diff Two Config Maps Locked
- Merge Meeting Intervals Locked
- Serialize Nested Folders Locked
- Tenant-Aware LRU Cache Locked
Related pages
More Microsoft Senior rounds
- System design 4 questions
- Behavioral 11 questions
Microsoft coding at other levels
- Staff 6 questions
- Senior staff 6 questions
- Senior EM 4 questions
Other companies at this level
- Adobe Senior 7 questions
- Airbnb Senior 4 questions
- Amazon L6 10 questions
- Anthropic Senior 6 questions
- Apple Senior 7 questions
- Cisco Senior 6 questions