Medlife Interview Experience

Round 1:

This round consisted of an online test on Hackerrank. There were 10 MCQs and 2 Programming questions. The MCQs had questions from OS, SQL, aptitude and Networks.

The first coding problem was – Given an array, find the no. of segments with the leftmost and rightmost element being the largest element.

Second problem – Given a string, find the rank of the string in the set of all its sub-strings.

12 students cleared this round.

Round 2:

F2F interview:- 2 problems based on data structures and algorithms.

  2. given an array, find the maximum product of 2 elements .     The problem can be solved in O(n) time and O(1) space.

Few questions from OS and Networks.

6 students cleared this round.

Round 3:

F2F interview:- 2 problems based on data structures and algorithms.

  1. Divide a tree (normal binary tree) into two halves such that the difference between the sum of nodes of both the sub trees is minimum.
  2. Given a file with large number of strings. The length of each string is also huge i.e. none of the strings can be loaded in the RAM. Find the two strings which are similar in less than O(n^2) time.

3 students were finally selected including me.

Write your Interview Experience or mail it to

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

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

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Article Tags :
Practice Tags :


Please write to us at to report any issue with the above content.