2024 papers
Microsoft Placement Papers 2025
Overview
This page is a working set of Microsoft placement papers from 2025: from student reports questions, the 2025 online assessment pattern, and step-by-step solutions. Use it to see what Microsoft actually asked in the latest cycle, how hard the rounds were, and which themes (DSA, system design, aptitude, or role-specific topics) mattered most. Practice the problems below under timed conditions, then cross-check with the interview and preparation guides if you are targeting an upcoming Microsoft drive.
Microsoft Online Assessment 2025 pattern
| Section | Questions | Time | Difficulty | Focus Areas |
|---|---|---|---|---|
| Coding Problems | 3-4 | 60-90 min | Medium-Hard | Arrays, trees, graphs, DP |
Total: 3-4 problems, 60-90 minutes
Platform: Microsoft Codility or HackerRank
Languages Allowed: C++, Java, Python, C#
Success Rate: ~15-20% cleared OA and advanced to interviews
Microsoft Placement Papers 2025 - actual questions & solutions
This section contains practice questions styled on Microsoft placement papers 2025 (recent-cycle pattern), with worked solutions. Use them as timed sectional drills - from student reports drives vary by college and role, so treat this as a high-signal practice bank, not an official paper dump.
Question 1: detect cycle in linked list
Show solution
Problem Statement: Return true if the linked list has a cycle.
Example:
Input: 3→2→0→-4→(back to 2)Output: trueSolution (Java):
public boolean hasCycle(ListNode head) { ListNode slow = head, fast = head; while (fast != null && fast.next != null) { slow = slow.next; fast = fast.next.next; if (slow == fast) return true; } return false;}Time Complexity: O(n)
Space Complexity: O(1)
Question 2: reverse a string
Show solution
Problem Statement: Given a string, return it reversed.
Example:
Input: "placement"Output: "tnemecalp"Solution (Java):
public String reverse(String s) { return new StringBuilder(s).reverse().toString();}Time Complexity: O(n)
Space Complexity: O(n)
Question 3: climbing stairs
Show solution
Problem Statement: You can climb 1 or 2 steps. How many distinct ways to climb n stairs?
Example:
Input: n = 4Output: 5Solution (Java):
public int climbStairs(int n) { if (n <= 2) return n; int a = 1, b = 2; for (int i = 3; i <= n; i++) { int c = a + b; a = b; b = c; } return b;}Time Complexity: O(n)
Space Complexity: O(1)
Question 4: rotate array right by k
Show solution
Problem Statement: Rotate the array to the right by k steps.
Example:
Input: [1,2,3,4,5,6,7], k = 3Output: [5,6,7,1,2,3,4]Solution (Java):
public void rotate(int[] nums, int k) { k %= nums.length; reverse(nums, 0, nums.length - 1); reverse(nums, 0, k - 1); reverse(nums, k, nums.length - 1);}void reverse(int[] a, int l, int r) { while (l < r) { int t = a[l]; a[l++] = a[r]; a[r--] = t; }}Time Complexity: O(n)
Space Complexity: O(1)
Question 5: check palindrome
Show solution
Problem Statement: Return true if the string reads the same forward and backward (ignore case).
Example:
Input: "Level"Output: trueSolution (Java):
public boolean isPalindrome(String s) { s = s.toLowerCase(); int i = 0, j = s.length() - 1; while (i < j) { if (s.charAt(i++) != s.charAt(j--)) return false; } return true;}Time Complexity: O(n)
Space Complexity: O(1)
Question 6: maximum subarray sum
Show solution
Problem Statement: Find the contiguous subarray with the largest sum.
Example:
Input: [-2, 1, -3, 4, -1, 2, 1, -5, 4]Output: 6 // [4, -1, 2, 1]Solution (Java):
public int maxSubArray(int[] nums) { int best = nums[0], cur = nums[0]; for (int i = 1; i < nums.length; i++) { cur = Math.max(nums[i], cur + nums[i]); best = Math.max(best, cur); } return best;}Time Complexity: O(n)
Space Complexity: O(1)
Question 7: longest common prefix
Show solution
Problem Statement: Find the longest common prefix string amongst an array of strings.
Example:
Input: ["flower","flow","flight"]Output: "fl"Solution (Java):
public String longestCommonPrefix(String[] strs) { if (strs.length == 0) return ""; String pref = strs[0]; for (int i = 1; i < strs.length; i++) { while (!strs[i].startsWith(pref)) { pref = pref.substring(0, pref.length() - 1); if (pref.isEmpty()) return ""; } } return pref;}Time Complexity: O(S)
Space Complexity: O(1)
Question 8
Q8: Time complexity of binary search on a sorted array of n elements is?
Solution:
Each step halves the search space → O(log n).
Answer: O(log n)
Question 9
Q9: In OOP, hiding internal details and showing only essential features is called?
Solution:
This is the definition of Encapsulation (often paired with abstraction in interviews).
Answer: Encapsulation
Question 10
Q10: Worst-case time complexity of quicksort is?
Solution:
Unbalanced partitions (already sorted with bad pivot) → O(n²).
Answer: O(n²)
Question 11
Q11: Which normal form removes transitive dependency?
Solution:
1NF: atomic values. 2NF: no partial dependency. 3NF: no transitive dependency.
Answer: 3NF
Key insights from 2025 Microsoft Online Assessment
- Coding Section is Critical: Must solve 3-4 coding problems correctly to advance
- DSA Focus: Strong emphasis on arrays, trees, graphs, and dynamic programming
- Structured Thinking: Microsoft values structured problem-solving approach
- Azure Knowledge: Cloud knowledge (Azure) is increasingly important for many roles
- Time Management: 60-90 minutes for 3-4 problems requires excellent speed
- Difficulty Level: Microsoft interviews rated 3.1/5 difficulty
- Success Rate: Only 15-20% cleared OA and advanced to interviews
- Balance Innovation with Stability: Microsoft values structured thinkers who balance innovation with stability
- LeetCode Medium Focus: Microsoft focuses on medium difficulty problems
Microsoft 2025 interview experiences
Based on recent candidate experiences from 2025 Microsoft interviews:
2025 Interview Process:
- Online Assessment (60-90 minutes): 3-4 coding problems
- Technical Phone Screen (45-60 minutes): Coding problems, algorithm discussions
- Onsite Interviews (4-5 rounds, 45 minutes each):
- Coding rounds (2-3): Algorithms, data structures, problem-solving
- System Design round: For experienced candidates, Azure architecture
- Behavioral round: STAR method, collaboration, innovation
2025 Interview Trends:
- Increased emphasis on Azure cloud knowledge for many roles
- More focus on structured problem-solving and clear communication
- Enhanced behavioral questions about collaboration and innovation
- Product thinking questions for relevant roles
Common 2025 Interview Topics:
- Coding: Arrays, trees, graphs, dynamic programming, LRU Cache
- System Design: Scalable systems, Azure cloud architecture, distributed systems
- Behavioral: Collaboration examples, innovation stories, structured thinking
- Azure Cloud: Cloud computing concepts, Azure services for relevant roles
- Product Thinking: Product design questions for relevant roles
2025 Interview Questions Examples:
- “Implement LRU Cache” (Coding)
- “Binary Tree Maximum Path Sum” (Coding)
- “Design a product for job seekers to create resumes” (Product Design)
- “How would you improve Outlook for vacation email overload?” (Product Thinking)
Success Tips:
- Strong coding performance is essential - solve problems with structured approach
- Practice LeetCode Medium problems - Microsoft’s sweet spot
- Learn Azure cloud knowledge for relevant roles
- Prepare STAR stories demonstrating structured thinking and collaboration
- Balance innovation with stability in your examples
- Practice explaining your problem-solving approach clearly
- Be ready for product thinking questions for relevant roles
Difficulty Rating: 3.1/5
For detailed interview experiences from 2025, visit Microsoft Interview Experience page.
Preparation tips for Microsoft 2025 pattern
- Master Coding Fundamentals: Focus on solving 3-4 coding problems correctly - arrays, trees, graphs, DP
- Practice Previous Year Papers: Solve Microsoft OA papers from 2020-2025 to understand evolving patterns
- Time Management: Practice completing 3-4 coding problems in 60-90 minutes
- LeetCode Medium Focus: Solve 200+ LeetCode Medium problems - Microsoft’s sweet spot
- Azure Cloud Knowledge: Learn Azure cloud concepts and services for relevant roles
- Structured Thinking: Practice structured problem-solving approach
- System Design Basics: Learn scalable system design and Azure architecture
- Behavioral Prep: Prepare STAR stories demonstrating collaboration and innovation
- Mock Tests: Take timed practice tests to improve speed and accuracy
- Balance Examples: Prepare examples showing balance between innovation and stability
- Product Thinking: Practice product design questions for relevant roles

