Microsoft interview questions and process
Microsoft's careers site advises candidates to prepare for both technical and behavioural questions and to use the STAR method for examples. For engineering roles in India, campus hiring usually starts with an online coding test, followed by technical interviews on data structures, algorithms and problem solving; experienced hires often also get a design round. Behavioural questions frequently connect to the culture Microsoft talks about publicly, such as a growth mindset, collaboration and inclusion. The exact sequence varies by team, so check the official careers site for current guidance.
Interview rounds
- Online coding test: Common for campus and early-career roles: timed coding problems on data structures and algorithms.
- Technical interviews: Usually two or more interviews with coding, debugging and discussion of your approach, edge cases and testing.
- Design round: For experienced roles, a system or component design discussion covering scale, reliability and trade-offs.
- Hiring manager or senior interview: A mix of technical depth, past projects and behavioural questions about how you learn, collaborate and handle setbacks.
- HR discussion: Role details, location and next steps.
Sample practice questions
- Given a string, return the index of the first character that does not repeat anywhere in the string, or -1 if every character repeats.
- A cloud drive stores files in nested folders. Each file has a size. Compute the total size of every folder, including all subfolders, and return the smallest folder whose total size is at least a given amount.
- You have k log files, each already sorted by timestamp. Merge them into one sorted stream without loading all files into memory at once.
- Design the data structures for undo and redo in a document editor. Typing a word should undo as one step, not letter by letter, and making a new edit after an undo should clear the redo history.
- Design the chat feature for large online meetings, where thousands of attendees can send messages that everyone should see within about a second, and the chat history is available after the meeting.
- You are given a sign-up form that mouse users find fine but keyboard and screen reader users cannot complete. What would you check and fix to make it accessible?
Not affiliated with or endorsed by Microsoft. Based on publicly reported interview formats; questions are original practice questions.