Microsoft Corporation
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
I applied via Campus Placement
To find n-k th element from last in a string of unknown length
Traverse the string to find its length
Calculate the position of n-k th element from last
Traverse the string again to find the element at calculated position
Count the number of unique occurrences in an array of strings.
Create a hash table to store the count of each string occurrence.
Iterate through the array and update the count in the hash table.
Count the number of unique occurrences by counting the number of keys in the hash table.
I applied via Campus Placement
I applied via Campus Placement
What people are saying about Microsoft Corporation
The program finds the diameter of an acyclic connected graph.
Start by selecting a node in the graph.
Perform a breadth-first search (BFS) from the selected node to find the farthest node.
Perform another BFS from the farthest node to find the actual diameter of the graph.
The problem is to find the minimum cost to paint n houses with 3 colors, ensuring no adjacent houses have the same color.
Use dynamic programming to solve this problem efficiently
Create a 2D array to store the minimum cost of painting each house with each color
Iterate through the houses and colors, updating the minimum cost based on the previous adjacent house's color
Return the minimum cost from the last row of the 2D a
Microsoft Corporation interview questions for popular designations
I applied via Campus Placement
Get interview-ready with Top Microsoft Corporation Interview Questions
I applied via Campus Placement
I applied via Campus Placement
Linear regression is a statistical method to model the relationship between a dependent variable and one or more independent variables.
It assumes a linear relationship between the variables.
The goal is to find the best-fit line that minimizes the sum of squared errors.
The estimates of the coefficient vector are found using the method of least squares.
The coefficient vector represents the slope and intercept of the line...
Pseudo code to find the unique number in an array with duplicates.
Create an empty dictionary
Loop through the array and add each element as a key in the dictionary with value 1
If the key already exists, increment its value by 1
Loop through the dictionary and return the key with value 1
Abstract classes are classes that cannot be instantiated and can have both abstract and non-abstract methods. Interfaces are contracts that define a set of methods that a class must implement.
Abstract classes can have constructors, fields, and non-abstract methods, while interfaces cannot.
A class can extend only one abstract class, but it can implement multiple interfaces.
Abstract classes can provide default implementa...
At least 7 runs are required to find the fastest horse.
Divide the horses into groups of 5 and run each group to find the fastest horse in each group.
Take the fastest horse from each group and run them together to find the overall fastest horse.
Repeat the process with the remaining horses until only one horse is left, which will be the fastest.
My strengths include strong communication skills, adaptability, and problem-solving abilities. My weaknesses include being overly critical of myself and sometimes struggling with time management.
Strength: Strong communication skills - I am able to effectively convey information and ideas to others.
Strength: Adaptability - I am able to quickly adjust to new situations and work well under pressure.
Strength: Problem-solvi...
I would like to improve my communication skills, leadership abilities, and time management.
Improving my communication skills will help me effectively convey my ideas and collaborate with others.
Enhancing my leadership abilities will enable me to motivate and guide a team towards success.
Developing better time management skills will allow me to prioritize tasks and meet deadlines efficiently.
Some of the top questions asked at the Microsoft Corporation interview -
The duration of Microsoft Corporation interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 375 interviews
Interview experience
based on 1.7k reviews
Rating in categories
Software Engineer
1.6k
salaries
| ₹16 L/yr - ₹50 L/yr |
Senior Software Engineer
1.1k
salaries
| ₹25 L/yr - ₹96 L/yr |
Software Engineer2
1k
salaries
| ₹20 L/yr - ₹72 L/yr |
Software Developer
762
salaries
| ₹14 L/yr - ₹50.4 L/yr |
Consultant
600
salaries
| ₹13 L/yr - ₹36.7 L/yr |
Amazon
Deloitte
TCS