Pregunta de entrevista de Booking.com

Sliding window and greedy algorithm