Grokking the Coding Interview: Patterns for Coding Questions
Ask Author
Back to course home

0% completed

Vote For New Content

Clarification needed for employee's end time

David Murga

Aug 10, 2025

0

5

0

Aug 10, 2025

Solution with end instead of start

Pete Stenger

Sep 17, 2024

0

20

0

Sep 17, 2024

Solution relies on fact that working times are sorted

Pete Stenger

Sep 17, 2024

2

25

0

Sep 9, 2025

My solution

Mohammed Dh Abbas

Jul 18, 2024

0

19

1

Jul 18, 2024

Heap solution, why we need index of employee

Manoj Dixit

Mar 22, 2024

0

40

1

Sep 17, 2024

The solution gives incorrect answer for [[[1, 3], [5, 7]], [[6, 8], [9, 11]]]

Anh-Quan Cao

Mar 17, 2024

0

30

1

Jul 22, 2024

There is a way simpler solution. Create a list [True] * 24. Iterate through all ...

Mike Xu

Oct 14, 2022

3

90

4

Sep 30, 2025

Solution gives incorrect answer. When employee working hours is, for example, [[...

Daniel Lee

Apr 24, 2022

2

62

2

Oct 20, 2025

The simple solution of sorting all employees' working hours in a list on start t...

Russell Rogers

Mar 3, 2022

14

88

0

Dec 29, 2024