Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Microsoft Interview Experience | Set 46 (Onsite)

  • Difficulty Level : Medium
  • Last Updated : 30 Jan, 2015

I had my onsite rounds with Microsoft.

There were 4 interviews.

Hey geek! It's time to become a success story instead of reading them. Check out our most renowned DSA Self Paced Course, now at a student-friendly price and become industry ready. And if you are looking for a more complete interview preparation resource, check out Complete Interview Preparation Course that will prepare you for the SDE role of your dreams!

Feeling prepared enough for your interview? Test your skills with our Test Series that will help you prepare for top companies like Amazon, Microsoft, TCS, Wipro, Google and many more!

Round 1. Given a circular buffer, write Get( ) and Post( ) methods . Get(n) should return the n characters in the string, if ‘n’ elements are not present, it should throw an exception. Put( string s) should put each of the characters of string s into the buffer without overwriting anything which hasn’t been read by Get()



Round 2 Longest common substring from 2 given strings. As I couldn’t give optimal solutions, asked me to write a strcmp(str1, str2) method

Round 3 Write a secure and safe strcpy( ) method . Asked me some theoretical questions about indexing and triggers for sql

Round 4 Write a program which generates XLS column numbers given the column number in decimal.
e.g.

Input Output
1        A
2        B
26      Z
27      AA
52      AZ
53      BA
... 

Good Luck to future interviewers

If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!