Uber | L5 | Phone Interview
Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2023-10-16Added By Anonymous
Source: Link
Company: Uber
Role: senior software engineer
Interview Stage: Phone Interview
Original Post Content:
Question: https://leetcode.com/problems/reconstruct-itinerary/description/ Phrased in a different way.
Interviewer forgot to add the last line from the question - "You may assume all tickets form at least one valid itinerary. You must use all the tickets once and only once."
The test case shared didn't match the question constraints, after asking for clarification the interviewer pasted the last line where all the places must be used once. Took some time to discuss and understand the question, later proposed backtracking approach.
Implemented the solution and one test case failed. Didn't have time to fix it.