Thursday, October 9, 2025
HomeData Modelling & AIMicrosoft Interview Experience | Set 157 (On-Campus)

Microsoft Interview Experience | Set 157 (On-Campus)

Microsoft visited our campus. Prior to that, about a month ago they had conducted an online coding test. The interview consisted of 3 f2f rounds.

Online test:

    The test comprised of 3 coding questions. The questions were not same for everyone.

  1. Find the missing number in an AP series.
  2. Find max sum path(sum of values of nodes) in a binary tree. The nodes may have negative values too.
  3. Given a binary tree, find the number of subtrees that sum up to a particular value.

Round 1:

  1. General introduction. Project description.
  2. Serialize and deserialize a binary tree.
  3. Full code was expected.

Round 2:

  1. General introduction.
  2. How would you make loading of webpages faster?
  3. Said something about cache, server-side loadbalancer etc. The interviewer went into details of caching, asked about several situations like, what if power failure occurs while writing to database, leading to a brief discussion on checkpoints, log files etc.
  4. Finally he asked me to design LRU cache. Was expecting only code snippets and proper data structure usage.

Round 3:

  1. General introduction.
  2. Connect all the nodes in the same level of a binary tree.

    I proposed a basic level order traversal using queue.https://www.geeksforgeeks.org/connect-nodes-level-level-order-traversal/

    But he came up with a bunch of constraints, so I gave this solution instead.
    https://www.geeksforgeeks.org/connect-nodes-at-same-level-with-o1-extra-space/

    He didn’t look very pleased, but moved on.

  3. Given a circular array that has been rotated, find a particular element in it.

    Gave the basic O(logn) approach for finding element in sorted rotated array by finding pivot first.

    He asked me to do it in one go without separately finding pivot.

    Wasn’t too hard to figure out.

  4. He seemed happy. Asked me if I had any questions. Explained about his work at Microsoft.

 

 

 

About 1.5 hrs later they declared the results. They had selected 4 students for Microsoft Redmond and around 8-9 for MSIDC, myself included 🙂

 

 

 

 

Feeling lost in the world of random DSA topics, wasting time without progress? It’s time for a change! Join our DSA course, where we’ll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 neveropen!

RELATED ARTICLES

Most Popular

Dominic
32345 POSTS0 COMMENTS
Milvus
87 POSTS0 COMMENTS
Nango Kala
6714 POSTS0 COMMENTS
Nicole Veronica
11877 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11940 POSTS0 COMMENTS
Shaida Kate Naidoo
6834 POSTS0 COMMENTS
Ted Musemwa
7094 POSTS0 COMMENTS
Thapelo Manthata
6789 POSTS0 COMMENTS
Umr Jansen
6791 POSTS0 COMMENTS