Skip to content
LevelUpCoders
Product-Based AssessmentProduct & Cloud

Microsoft interview preparation

Pattern breakdown, verified question volume, and topic weights based on recent candidate interview reports.

50Total questions
40Coding tasks
10Aptitude & MCQs
Pattern analysis

What this company's assessment usually contains

Last reviewed: 22 Oct 2026

Microsoft Online Assessments (frequently hosted on Codility or Mettl) are commonly reported to include 2-3 algorithmic coding tasks within 70 to 90 minutes. Emphasis is placed on strings, linked lists, binary trees, and dynamic programming, with tests measuring both correctness across edge cases and performance.

Sample questions

Free question preview (3 sample problems)

Chosen at random per build
Coding challengeStackEasy
Question 1 of 3

Valid Parentheses

Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.

Example input:s = "()[]{}"
Example output:true
Answers, optimal solution code, and hidden test cases are hidden in free preview.
MCQ sampleData StructuresMedium
Question 2 of 3

Balanced Binary Search Tree Height

What is the maximum height of an AVL tree containing N nodes?

Alog2(N)
BApproximately 1.44 * log2(N)
CN / 2
D2 * log2(N)
Visible MCQ Answer (B): Due to the balance factor constraint (|h_left - h_right| <= 1), the minimum number of nodes in an AVL tree follows Fibonacci-like growth, bounding the maximum height to ~1.4404 * log2(N).
Coding challengeGraphs/DFSMedium
Question 3 of 3

Number of Islands

Count the number of islands in an m x n binary grid (1s are land, 0s are water).

Example input:grid = [["1","1","0"],["1","1","0"],["0","0","1"]]
Example output:2
Answers, optimal solution code, and hidden test cases are hidden in free preview.

Solve all 50 Microsoft questions with feedback

Access the complete Microsoft placement question bank, live code execution against test cases, AI-guided debugging hints, and placement readiness scores.

Pre-configures Microsoft as your target company during onboarding. Free student access.