Question d’entretien chez Kira Systems

Can you provide a solution with better algorithmic performance?

Réponse à la question d'entretien

Utilisateur anonyme

24 mars 2017

Yes - use an interval tree as your base data structure where assuming not all events overlap - the performance would be n log n.