Faster and better experience!
Microsoft Corporation
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
Math and logical questions
Medium - hard level questions of leetcode
I applied via Company Website and was interviewed in Dec 2023. There were 2 interview rounds.
2 ques med leetcode ques
The right view of a binary tree shows the nodes that are visible when viewing the tree from the right side.
The right view of a binary tree can be obtained by performing a level order traversal and keeping track of the rightmost node at each level.
Nodes that are visible from the right side are the ones that are the rightmost at their respective levels.
For example, in the binary tree: 1 / \ 2 3 / \ /...
I applied via Campus Placement and was interviewed before Jul 2022. There were 3 interview rounds.
Easy array, string based questions
To change permissions for a file, you can use the chmod command in the terminal.
Use the chmod command followed by the permission code and the file name
Permission codes include 'u' for user, 'g' for group, and 'o' for others, along with 'r' for read, 'w' for write, and 'x' for execute
For example, to give read and write permissions to the user for a file named 'example.txt', you can use 'chmod u+rw example.txt'
Given a Y-linked list, find the node at the intersection point.
Traverse both branches of the Y-linked list and compare nodes.
Use a hash table to store visited nodes and check for intersection.
If one branch is longer, traverse it until it matches the length of the other branch.
Count the occurrences of each character in a given string including special characters.
Create test cases for empty string
Test for string with only one character
Test for string with all characters being the same
Test for string with all characters being different
Test for string with special characters
Remove duplicate characters from a string while preserving order.
Create an empty string to hold the result.
Iterate through each character in the input string.
If the character is not already in the result string, add it.
Return the result string.
The complexity of the codes depends on the number of operations and loops used.
The first code has a complexity of O(n) as it uses a single loop to iterate through the array.
The second code has a complexity of O(n^2) as it uses nested loops to compare each element with every other element in the array.
The complexity of a code can also depend on the type of operations used, such as sorting or searching.
Complexity can be ...
I have a strong academic background with a focus on computer science and engineering.
Graduated with a Bachelor's degree in Computer Science from XYZ University
Completed a Master's degree in Electrical Engineering from ABC University
Took courses in data structures, algorithms, programming languages, and computer networks
Participated in various coding competitions and hackathons
Maintained a GPA of 3.8 throughout my acade
I am working on this project out of interest and I believe I can improve it by implementing more advanced algorithms and incorporating user feedback.
Implement more advanced algorithms to improve accuracy
Incorporate user feedback to enhance user experience
Optimize code for faster performance
Add more features to increase functionality
My peers would describe me as a reliable and hardworking team player with excellent communication skills.
Reliable and consistent in meeting deadlines and completing tasks
Collaborative and supportive of team members
Clear and effective communicator, both verbally and in writing
Open to feedback and willing to learn and improve
Positive attitude and strong work ethic
I am currently working on a web application for a client in the e-commerce industry.
The project involves developing a user-friendly interface for customers to browse and purchase products.
I chose this project because I have experience in web development and I find the e-commerce industry interesting.
I am also excited about the challenge of creating a seamless checkout process for customers.
The project requires collabor...
I am constantly seeking feedback and learning new skills to improve my performance.
Regularly seeking feedback from colleagues and supervisors
Attending workshops and training sessions to learn new skills
Setting personal goals and tracking progress towards them
Reflecting on past experiences and identifying areas for improvement
Reading industry publications and staying up-to-date with trends
The desire to learn and grow keeps me motivated.
Setting achievable goals
Celebrating small wins
Surrounding myself with positive people
Taking breaks and practicing self-care
Remembering my purpose and passion
Continuously learning and seeking new challenges
My professors would describe me as hardworking and detail-oriented. They have pointed out my weakness in public speaking.
Professors would describe me as hardworking and detail-oriented
Weakness in public speaking has been pointed out
Received positive feedback on assignments and projects
Collaborates well with classmates and participates in group discussions
Short term goal is to learn and contribute to the company. Long term goal is to grow professionally and take on leadership roles.
Short term goal: Learn new skills and technologies
Short term goal: Contribute to the company's success
Long term goal: Grow professionally and take on leadership roles
Long term goal: Build a strong network in the industry
Long term goal: Achieve financial stability
Microsoft Corporation interview questions for designations
Top trending discussions
I appeared for an interview before May 2021.
Round duration - 90 minutes
Round difficulty - Medium
Given 'N' students standing in a row with specific heights, your task is to find the length of the longest strictly increasing subsequence of their heights...
Find the length of the longest strictly increasing subsequence of heights of students in a row.
Iterate through the heights array and for each element, find the length of the longest increasing subsequence ending at that element.
Use dynamic programming to keep track of the longest increasing subsequence length for each element.
Return the maximum length found as the result.
You are given the start and end times of 'N' intervals. Write a function to determine if any two intervals overlap.
If an interval ends at time T and anothe...
Given start and end times of intervals, determine if any two intervals overlap.
Iterate through intervals and check if any two intervals overlap by comparing their start and end times
Sort intervals based on start times for efficient comparison
Consider edge cases where intervals end and start at the same time
Various SQL queries related to data manipulation and retrieval were asked during the interview.
Basic SELECT queries to retrieve data from a single table
JOIN queries to retrieve data from multiple tables based on a common column
Aggregate functions like COUNT, SUM, AVG, etc. to perform calculations on data
Subqueries to retrieve data based on the result of another query
UPDATE queries to modify existing data in a table
DELE...
Round duration - 60 Minutes
Round difficulty - Medium
Given a string STR
of size N
and an integer M
representing the number of rows in the zig-zag pattern, return the string formed by concatenating all rows when the string ST...
Arrange a string in zig-zag pattern with given number of rows and concatenate the rows.
Iterate through the string and distribute characters to rows based on zig-zag pattern
Concatenate the characters in each row to get the final result
Handle edge cases like when number of rows is 1 or equal to the length of the string
You are given a permutation of 'N' integers. A sequence of 'N' integers is considered a permutation if it includes all integers from 1 to 'N' exactly once. Your task is ...
The task is to rearrange a given permutation of 'N' integers to form the lexicographically next greater permutation.
Iterate from right to left to find the first element that is smaller than the element to its right.
Swap this element with the smallest element to its right that is greater than it.
Reverse the elements to the right of the swapped element to get the lexicographically next greater permutation.
Round duration - 60 Minutes
Round difficulty - Medium
Given a string S, your task is to recursively remove all consecutive duplicate characters from the string.
String S
Output string
Recursively remove consecutive duplicate characters from a string.
Use recursion to check if the current character is the same as the next character, if so skip the next character
Base case: if the string is empty or has only one character, return the string
Example: Input: 'aaabcc', Output: 'abc'
Given an input string 'S', you are tasked with finding and returning all possible permutations of the input string.
The first and only line of input ...
Return all possible permutations of a given input string.
Use recursion to generate all possible permutations of the input string.
Swap characters at different positions to generate permutations.
Handle duplicate characters in the input string by using a set to store unique permutations.
Round duration - 60 Minutes
Round difficulty - Medium
Design an e-commerce website similar to Flipkart or Amazon.
Implement user-friendly interface for easy navigation
Include search functionality with filters for products
Incorporate secure payment gateway for transactions
Provide personalized recommendations based on user behavior
Include customer reviews and ratings for products
Implement order tracking and delivery status updates
Offer various payment options like credit/deb
Tip 1 : Prepare DSA well. Standard Leetcode-type questions will be asked.
Tip 2 : You should be crystal clear about your project/s as any question would be asked and you should be able to answer it.
Tip 3 : Prepare CS fundaments like OS, OOPs, DBMS, etc.
Tip 1 : Clearly mention the tech. stack you have worked on in the project/s
Tip 2 : As a fresher, you should add your coding profiles on CodeChef, Codeforces, etc. so as to make the resume shortlisting easy
posted on 16 Apr 2021
I appeared for an interview before Sep 2020.
Round duration - 120 Minutes
Round difficulty - Easy
The round was conducted in day around 3PM.
Given an array ARR
consisting of 'N' positive integers, determine if it is possible to partition the array into two subsets such that the sum of the elements in both sub...
The problem is to determine if it is possible to partition an array into two subsets with equal sum.
Use dynamic programming to solve this problem efficiently.
Create a 2D array to store the results of subproblems.
Check if the sum of the array is even before attempting to partition it.
Iterate through the array and update the 2D array based on the sum of subsets.
Return true if a subset with half the sum is found, false ot
Round duration - 30 Minutes
Round difficulty - Easy
The interview was preponed and was conducted at 9AM.
The interviewer was friendly and I had saw him earlier at pre-placement talk.
Given a string STR
, your task is to remove spaces from STR
and convert it to Pascal case format. The function should return the modified STR
.
In Pascal case, words are con...
Convert a given string to Pascal case format by removing spaces and capitalizing the first letter of each word.
Iterate through each character in the string
If the character is a space, skip it
If the character is not a space and the previous character is a space or it is the first character, capitalize it
SQL query to retrieve the Nth highest salary from a database
Use the ORDER BY clause to sort salaries in descending order
Use the LIMIT clause to retrieve the Nth highest salary
Consider handling cases where there might be ties for the Nth highest salary
Round duration - 30 Minutes
Round difficulty - Easy
This round was conducted 15mins after 1st round.
You are given a singly Linked List with 'N' nodes containing integer data and an integer 'K'. Your task is to delete the Kth node from the end of this Lin...
Remove the Kth node from the end of a singly linked list.
Traverse the list to find the length 'N'.
Calculate the position of the node to be removed from the beginning as 'N - K + 1'.
Remove the node at the calculated position.
Handle edge cases like removing the head or tail of the list.
Update the pointers accordingly after removal.
Tip 1 : Do Competitive Coding
Tip 2 : Learn at least 1 framework
Tip 3 : Build interest in computers
Tip 1 : Be well informed of everything you mention in your resume
Tip 2 : Mention competitive coding achivements in your resume(if any)
I applied via Approached by Company and was interviewed before Aug 2021. There was 1 interview round.
Abstract class can have implementation while interface cannot. Classes can implement multiple interfaces but only one abstract class.
Abstract class can have constructors while interface cannot.
Abstract class can have non-abstract methods while interface cannot.
Interfaces are used for full abstraction while abstract classes are used for partial abstraction.
Example: Abstract class - Animal with method eat() and subclass ...
I applied via Naukri.com and was interviewed in Jan 2021. There were 3 interview rounds.
Some of the top questions asked at the Microsoft Corporation SDE Intern interview -
based on 3 interviews
Interview experience
based on 1 review
Rating in categories
Software Engineer
2.2k
salaries
| ₹15 L/yr - ₹50 L/yr |
Senior Software Engineer
1.2k
salaries
| ₹25 L/yr - ₹95 L/yr |
Software Engineer2
1.1k
salaries
| ₹20.6 L/yr - ₹70 L/yr |
Software Developer
607
salaries
| ₹30 L/yr - ₹54.2 L/yr |
Support Engineer
596
salaries
| ₹9 L/yr - ₹30 L/yr |
Amazon
Deloitte
TCS