Open In App

Microsoft Interview Experience (On-Campus for Internship)

Last Updated : 18 Dec, 2018
Improve
Improve
Like Article
Like
Save
Share
Report

Online Coding Round:

It was conducted on Cocubes. There were 3 questions to be solved in 75 mins. My questions were:

  1.  Given a character array, find the average of ascii characters in the array. Ex:- i/p = ab12, o/p = 73.5   (2 marks)
  2.  Evaluation of a given infix expression(as character array). Ex:- i/p = 4-5*14/7+2, o/p = -4  (3 marks)
  3.  Find the lowest number possible by removing k digit from a given number. Ex:- i/p = 4312389, k=3, o/p = 1238  (5 marks)

Out of 200 students, approximately 60-65 where selected for pen & paper round. Gettting more than 5 marks was enough for clearing this round. Regarding cocubes, it is a simple ide where one can only test the code for compilation error and few basic test cases. We where not able to run the code for custom test-cases, but you can certainly modify the input string for checking.

Pen & paper round:

This round consisted of 7 short questions(based on C lang.) of 3 marks each and one coding question of 6 mark. The coding question was Detecting and Removing Loop from a Linked List. All the questions where compulsory. Around 24 students moved forward for face-to-face personal interviews.

Round 1:

Interviewer went through my cv and asked some question from OOPs, like what are virtual functions and destructors, and difference between new and malloc. Then how to deallocate memory and what happens for the combination of :- (new and free) and (malloc and delete). Then he asked me 2 coding questions:

  1. Given a Binary Search Tree, convert it into a Doubly Linked List. He asked me to write some test cases.
  2. Given a row-wise sorted n*n matrix, Print the elements of matrix in non-decreasing order. Space complexity of O(n) was allowed. I used min-heap to solve it.

For the questions try to 1st tell your approach and use test cases to dry run your approach. Then move to writing code, when asked.

Round 2:

I was asked :

  1. There are two parallel lines. One line has n points and other m points. Points are connected to each other in a zig-zag manner. Find the number crosses i.e, points of intersection of connections. Similar to this problem-  https://www.geeksforgeeks.org/counting-cross-lines-array/
  2. A set on N rectangles, each having sides aligned to x-axis and y-axis, was given. Another rectangle was given and I had to check how many rectangles from the set completely lie inside the new rectangle. We can sort the set along x-axis and y-axis, and find the no of rectangles by using 4 binary searches.
  3. Exception handling in c++ and java.

One more round was there for selected students. Total 6 students was selected.


Previous Article
Next Article

Similar Reads

Microsoft Internship Experience | Off-Campus Internship (Hyderabad)
Microsoft conducted an all India drive for hiring SDE Interns(Minimum CGPA was 7 and no backlogs were allowed). They conducted a coding round in which people who solved 3 got a call or people who solved 2 and had a higher CGPA(+9) also received a call. Girls solving one problems were called for on site interview. Coding round questions: Distribute
4 min read
Microsoft Interview Experience | Set 148 (Internship IDC Pool Campus)
Round 1: (Online Coding) Online coding round on co-cubes platform. 3 Questions 75 mins. Questions are very easy. Given two arrays find the min in first array and max in the second array and return the product of the two elements(2 marks) Given a 2d matrix and a column we have to sort the rows of the matrix based on element present at that column in
4 min read
Microsoft Interview Experience | Set 144 (Pool Campus - Internship)
Online coding Round - 550 students sat for the online coding round and CGPA cut off was 7. Three coding questions were asked to us and we were given 90 minutes to solve three questions. Round 1 – Online assessment - Platform – cocubes.com Duration – 90 minutes Format – 3 Coding Questions Maximum Score – 10 marks Complete the following function - in
6 min read
Microsoft Interview Experience | Set 145 (Pool Campus – Internship)
Online coding Round - 550 students sat for the online coding round and CGPA cut off was 7. Three coding questions were asked to us and we were given 90 minutes to solve three questions. Round 1 – Online assessment - Platform – cocubes.com Duration – 90 minutes Format – 3 Coding Questions Maximum Score – 10 marks Complete the following function - in
4 min read
Microsoft Interview Experience | Set 164 (On-Campus for Internship)
I had opted for the on campus Internship Interview for Microsoft at almost the beginning of my third year. Here is the interview experience. To anyone who is reading this. Thanks a lot for being here and I hope this is going to help! Round 0: This round was conducted online on the Cocubes platform. We just had to fill a Google form for participatin
5 min read
Microsoft Interview Experience (On campus internship)
It was conducted on Cocubes. It consisted of 3 questions: 2 marks:Average of ascii characters of string. Input:abc Output:(65+66+67)/3=66 3 marks:Reverse k nodes at a time in a linked list. 5 marks:Cousin sum in a binary tree. Other questions were: 1.Infix evaluation 2.Given an array of numbers, find the smallest number after n deletions 3.Next pal
2 min read
Microsoft Interview Experience (On-campus internship)
Online round: It was conducted on Cocubes. It consisted of 3 questions: 2 marks:Average of ascii characters of string. 3 marks:Reverse alternate k nodes 5 marks:Cousin sum in a binary tree. Other questions were: Infix evaluation Given an array of numbers, find the smallest number after n deletions Next palindrome. Of 200 students about 60 were sele
2 min read
Microsoft Interview Experience (On-Campus for Internship 2018)
Online Coding Round : This round was conducted on Cocubes. There were 3 coding questions for which time alloted was 75 minutes. There were various sets of questions .My questions were: Given a string, the task is to find the average of ASCII values of characters in the string . Intfix evaluation. Cousin sum of a binary tree . Other questions were:
4 min read
Microsoft Interview Experience (On-campus Internship 2018)
Microsoft IDC visited our campus on 25th August, 2018 for on campus internships. They set CGPA cut off as 7 for applying. Round-1(Online test) The first online round was on Co-Cubes ( a very bad platform with no option of custom input as well.) which comprised of 3 coding questions (Test Duration: 75 mins). Not all the questions were same, Differen
4 min read
Microsoft IDC Interview Experience (On Campus Internship)
Round 1(Online Test): There were three questions on cocubes: First(2 marks): https://www.geeksforgeeks.org/calculate-the-total-fine-to-be-collected/ Second(3 marks): Find the smallest number which when appended to given number will make the resultant number a palindrome. Third(5 marks): https://www.geeksforgeeks.org/remove-bst-keys-outside-the-give
3 min read