Round 1:
GIven a relationship of heights of persons in list return true if all relationships are valid else false.
for eg:
Input :
[[Alex,Bella],[Bella,Alexendra],[Alexendra,David]]
Means :
Input:
[[Alex, Bella], [Bella,Alexendra],[Alexendra,Alex]]
Output:
false
as height of Alex cannot be more than Bella but less the Alexendra.
My approach was Dfs with each name as node in graph and if cycle exists return false.
(I think this approach got me rejected in interview.The interviwer was asking me to use some other data structure but my mind got stuck with this ...)
Round 2:
This is open ended question don't assume anything keeping asking for more info from interview and then try to solve it.
Round 3:
System design --
Low level and high level design of chess game.
(I already had done the same quesiton 2 days back so nailed it).
Bahviours and previous work experience question:
Interviwer was asking me quesiton related to my current project.
Tips: Just listen to thier question and try to mix your answer with amazon 14 principles.