Background: 2020 B.E undergrad from one of top Delhi Engineering college in CSE
Date of interviews: 21/10/2020
It was a off campus drive from Sapient organised till September
Rounds:
Coding round: HackerRank(Duration 90 minutes)
Two graph questions were there-:
a.) INPUT: Given undirected and disconnected graph (in form of matrix m*n with ones and zeroes).One can move in four direction up,down,left,right. Ones are Permissible(land) and zeroes are restricted(water).
TASK: Answer "q" queries , Each query gives size(qi) which is an integer
OUTPUT: Number of connected components with size qi
Modification of: https://leetcode.com/problems/number-of-islands/
b.) INPUT: Given directed graph with no negative weight cycle. N cities are given from 1 to N with positive weighted(Cost) edges between them and given two more cities x and y.
TASK: Minimize the total cost in travelling city 1 to x and then x to y and then y to N.
Means : dist(1,x)+dist(x,y)+dist(y,N)
OUTPUT: Minimum cost.
My solution : Summation of individual single source shortest path costs in the three steps.
Domain Interview: Organized on microsoft teams
It was more of multi domain knowledge testing rather than problem solving. They were more intersted in JAVA but I knew C++ and Python. So I answered with respect to C++.
TOPICS:
3.) CORE VALUES INTERVIEW:
It was more related to application level of my projects( integration of web dev and ML)
It is totally individualistic.