Disney SDE 2 Interview
Summary
I completed an online assessment and a virtual interview where I was asked a design problem, and ultimately I was not selected.
Full Experience
Round 1 (OA)
Two easy-medium DSA questions.
Round 2 (Virtual Meet)
The interviewer asked about two points from my resume. I fumbled on them a bit. Q1. Design a method that takes genre and fires a request to an API which gives a response with movie title and corresponding movie rating of that particular genre, return the top rated movie in that genre. In case of a tie, return smallest lexicographical movie title.
I approached the problem using priority queue with a custom sort function. The API had a query parameter of page number (it was paginated, I had to fetch the response from all pages). The interviewer had to tell me 2-3 times about the problem requirements, that was supposedly a red flag for them.
Round 2 for this position was Bengaluru in-office face to face, the flight tickets was supposed to be sponsored.
Verdict: Not Selected
Interview Questions (1)
Top Rated Movie by Genre
Design a method that takes a genre, queries a paginated API that returns movie titles and their ratings for that genre, and returns the movie with the highest rating. If multiple movies share the highest rating, return the one with the smallest lexicographical title.