Uber Phonic | July 2024

1152
Jul 18, 2024
Jul 18, 2024

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 (7)