Uber | Phone Screen | Timer & Max points on a line
Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2019-07-30Added By Anonymous
Source: Link
Company: Uber
Role: unknown
Interview Stage: Phone Screen
Location: unknown
Year: unknown
Original Post Content:
I was asked these two questions for my first and second phone interview.
Ended up getting rejected after the second one. :(
I missed some edge cases and needed some help on how to calculate the lines.
Interview 1: [React]
* Create a timer that counts down from 10 - 0. Has the ability to pause and resume. Display timer.
* Convert the timer into a lap timer. Starts from 0 - Infinity. Lap button will save time and lap number.
Display all laps and lap times. "Lap 1: 10"
Interview 2:
* https://leetcode.com/problems/max-points-on-a-line