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: