employer cover photo
employer logo
employer logo

Palantir Technologies

Questa è la tua azienda?

Domanda di colloquio di Palantir Technologies

Create a function that returns the maximum or minimum distance between two times (not dates), without using build in date parsers of course

Risposta di colloquio

Anonimo

19 gen 2021

The trick is to subtract daytimes, but to keep in mind that 1.00 and 23.00 are closer than 12 and 15 since 23.00 to 1.00 go over the night