Uber Phonic | July 2024

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2024-07-18Added By Anonymous
Source: Link

Company: Uber

Role: unknown

Interview Stage: Phone Screen

Year: 2024


Original Post Content:


For the first question, they asked me https://leetcode.com/problems/paint-house/.

Then, they asked a follow-up question: What if the colors of the first house and the last house are also required to be different? Could someone provide an optimized solution?

Comments