Microsoft Corporation
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
2 medium leetcode questions were asked
Cf questions asked of rating 1400
TypeScript (ts) is a superset of JavaScript (js) that adds static typing and other features to improve code quality and maintainability.
TypeScript provides static typing, which helps catch errors at compile time rather than runtime.
TypeScript supports modern JavaScript features like classes, interfaces, and modules.
TypeScript can be transpiled into JavaScript, making it compatible with all browsers and environments.
Typ...
I applied via Referral and was interviewed in Aug 2024. There were 2 interview rounds.
Complete 2 leetcode questions in 60 minutues
The interview was to build a sudoko game in 3 hours
What people are saying about Microsoft Corporation
The minimum number of operations required to set all elements of a binary matrix to 0 or 1.
Count the number of 0s and 1s in each row and column separately.
For each row and column, choose the minimum between the count of 0s and 1s as the number of operations needed.
Sum up the minimum operations for all rows and columns to get the total minimum operations.
Microsoft Corporation interview questions for designations
I applied via campus placement at Maulana Azad National Institute of Technology (NIT), Bhopal and was interviewed before Oct 2023. There were 2 interview rounds.
2Coding questions were there
Get interview-ready with Top Microsoft Corporation Interview Questions
I applied via Company Website and was interviewed before Mar 2023. There were 3 interview rounds.
Moderate coding question
1 month long hackathon
I was interviewed in Apr 2021.
Round duration - 90 minutes
Round difficulty - Easy
There were 3 coding questions. All of them were pretty easy and solvable in less than 30 minutes. Some string and pattern matching + some number theory problems were there.
You are provided with a string expression
consisting of characters '+', '-', '*', '/', '(', ')' and digits '0' to '9', representing an arithmetic express...
Infix Expressions are harder for Computers to evaluate because of the additional work needed to decide precedence, so we first convert infix expressions into either postfix or prefix expressions. In this approach, we convert Infix expression into Postfix expression also known as Reverse Polish Notation, and then evaluate the postfix expression using stack. Note in postfix expression, ...
Given an array of integers, determine the contiguous subarray that produces the maximum product of its elements.
A subarray can be derived from th...
Steps:
O(1)
Constant space is u...
Given a specific time in hours and minutes, your task is to calculate the smallest possible angle between the hour hand and the minute hand of a clock.
Round duration - 45 minutes
Round difficulty - Medium
This was a technical round. First after properly introducing ourselves(me and the interviewer), we started with the main interview. I was asked 2 questions, one DS and Algorithms and the other System Design question.
You are provided with a Binary Tree consisting of 'N' nodes, where each node holds an integer value. Your objective is to identify and list all nodes that do not possess a...
The idea here is to use the fact that if a node of the binary tree has two child nodes, then both of them will be siblings to each other, and if a node of the binary tree has only one child, then that child will not have any sibling.
Example
In above figure 1 has two children, so nodes 3 and 4 are siblings to each other. Also, 3 has only one child, i.e., 5 and 5 have no sibling node.
So, we will use a df...
Tip 1 : Discuss first about how the product(here, elevator) will function.
Tip 2 : Start making with the most basic classes for the elevator.
Tip 3 : One by one after making the basic class, add new functionalities to it, taking care of all corner cases.
Tip 1 : Make sure to solve the most recommended problems of LeetCode. Around 200 will do
Tip 2 : Be confident with your basics of chapters from Operating Systems and DBMS or SQL Queries.
Tip 3 : Have a slight knowledge of system designing concepts.
Tip 1 : Make your Resume such that it is properly readable. Keep it of one page. If it exceeds try your best to include only the most important highlights.
Tip 2 : Put your most important achievements at the top and after than the not so important ones. You want the interviewer to see them first.
I was interviewed in Jan 2021.
Round duration - 75 minutes
Round difficulty - Hard
This round was scheduled in the evening hours and all the participants were required to fill a form which was shared 2 days prior to the test date. This form was filled out probably for the security reasons and to ensure that no one disinterested participant gives the test.
Given a binary tree with N
nodes, determine whether the tree is a Binary Search Tree (BST). If it is a BST, return true
; otherwise, return false
.
A binary search tree (BST)...
Given a string A
consisting of lowercase English letters, determine the length of the longest palindromic subsequence within A
.
The main idea behind this approach is to use recursion. The idea is to compare the first character of the string A[i..j] with its last character. There are two possibilities:
Round duration - 45 minutes
Round difficulty - Medium
There was only one female interviewer for this round. She continuously interacted with me and was giving me some good situational problems that were not very easy to answer. Basically those were open-minded questions which can be answered both ways and that's why I found it quiet hard as per my nature but at the end things went well for me.
Tip 1 : Practice all DSA questions from interview bit
Tip 2 : Do Atleast 3 project one should be major, if it's in web dev it would be beneficial.
Tip 3 : Should be good in communication skills
Tip 1 : Not more than 1 page
Tip 2 : Have atleast 3 projects with some achievement in coding contest and your coding handle should be mentioned like codechef, codeforces etc
Tip 3 : Try to keep only those things in resume in which you find yourself comfortable with
I was interviewed in Dec 2020.
Round duration - 60 Minutes
Round difficulty - Easy
There were 3 coding questions of various difficulty level
Design a data structure for a Least Recently Used (LRU) cache that supports the following operations:
1. get(key)
- Return the value of the key if it exists in the cache; otherw...
We will use an array of type Pair<key, value> to implement our LRU Cache where the larger the index is, the more recently the key is used. Means, the 0th index denotes the least recently used pair, and the last index denotes the most recently used pair.
The key will be considered as accessed if we try to perform any operation on it. So while performing the get operation on a key, we will do a ...
You are given an array 'ARR'
of size 'N'
consisting of positive integers. Your task is to determine the minimum number of operations required to make all elements in t...
For making all elements equal you can select a target value and then you can make all elements equal to that. Now, for converting a single element to a target value you can perform a single operation only once. In this manner, you can achieve your task in the maximum of ‘N’ operations but you have to minimize this number of operations and for this, your selection of target is very important because if ...
Given an integer N
, find all possible placements of N
queens on an N x N
chessboard such that no two queens threaten each other.
A queen can attack another queen if they ar...
Round duration - 80 Minutes
Round difficulty - Easy
Asked various coding questions and their implementations
You are provided with a 2-dimensional matrix having N
rows and M
columns, containing only 1s (land) and 0s (water). Your goal is to determine the number of islands in t...
We can use the flood fill algorithm to check for all connected 1s.
Reverse a given stack of integers using recursion. You must accomplish this without utilizing extra space beyond the internal stack space used by recursion. Additionally, you ...
We will be using two recursive methods:
You are given an integer array 'ARR' of size 'N' and an integer 'S'. Your task is to find and return a list of all pairs of elements where each sum of a pair equals 'S'.
O(1).
Constant extra space is required.
Time Complexity: O...Round duration - 30 Minutes
Round difficulty - Easy
HR was very friendly
Tip 1 : Don't lie over your resume
Tip 2 : Practice regularly
Tip 3 : Revision is the key
Tip 1 : Right only correct info, Don't fake it
Tip 2 : Keep it precise and concise.
I was interviewed in Dec 2020.
Round duration - 120 Minutes
Round difficulty - Easy
Total 3 coding questions were there, out of which I don't remember the last one.
Ninja is organizing a dance competition and wants to pair participants using a unique method. Each participant chooses a number upon entry, and Ninja selects a nu...
The brute force approach that we can think of is to check for every pair in the array and then count the number of pairs with a difference equal to ‘K’.
But this brute force approach will not be valid in the case of duplicates. So, in order to handle duplicate pairs, we will sort the array first and then find the pair and finally skip the ones that are equal.
Algorithm:
You are given two strings 'A' and 'B'. While string 'A' is constant, you may apply any number of left shift operations to string 'B'.
Your task is to calcu...
Round duration - 60 Minutes
Round difficulty - Easy
Given a square matrix 'MATRIX' of non-negative integers, rotate the matrix by 90 degrees in an anti-clockwise direction using only constant extra space.
The idea is to find the transpose of the given matrix and then reverse the columns of the transposed matrix. For example:
For the given 2D matrix:
[ [ 1, 2, 3 ],
[ 4, 5, 6 ],
[ 7, 8, 9 ] ]
After taking transpose, it will become:
[ [ 1, 4, 7 ],
[ 2, 5, 8 ],
[ 3, 6, 9 ] ]
After reversing the columns, it will ...
Given an array/list ARR
consisting of integers where each element is either 0, 1, or 2, your task is to sort this array in increasing order.
The input sta...
Simply, we will sort the array.
Space Complexity: O(1)Explanation:O(1), i.e. constant space complexity.
Since we are not using any extra space. Hence, the space complexity is constant.
Time Complexity: O(nlogn)Explanation:O(Nlog(N)), where N is the length of the array/list.
Since we are using the inbuilt sort function. Hence, the time complexity is O(Nlog(N)).
/*
Time Compl...
Round duration - 60 Minutes
Round difficulty - Easy
This was HR + Technical round
He started with questions on projects and Os and Dbms and Oops
Then asked one coding question
You are given a non-empty grid that consists of only 0s and 1s. Your task is to determine the number of islands in this grid.
An island is defined as a group of 1s (re...
The problem boils down to find the number of connected components in the grid.
If we are on a land cell and explore every cell connected to it 8-directionally (and recursively cells connected to those cells, and so on), then the total number of cells with land explored will be one island.
To ensure we don't count cells in the island more than once, we will mark 1(land) as 0 during the recursion call...
Tip 1 : Maintain At least 2 projects in your resume.
Tip 2 : Be Confident enough
Tip 3 : Solve lot of problems
Tip 1 : Achievements are good to have
Tip 2 : You should be able to answer all the questions related to skills in the resume.
based on 7 interviews
3 Interview rounds
based on 18 reviews
Rating in categories
Software Engineer
1.9k
salaries
| ₹13 L/yr - ₹50 L/yr |
Senior Software Engineer
1.1k
salaries
| ₹25 L/yr - ₹85 L/yr |
Software Engineer2
1k
salaries
| ₹20 L/yr - ₹72 L/yr |
Consultant
599
salaries
| ₹13 L/yr - ₹36.7 L/yr |
Support Engineer
578
salaries
| ₹7.7 L/yr - ₹30 L/yr |
Amazon
Deloitte
TCS