Pergunta de entrevista da empresa Thoughtworks

Given a list of events and their timings, eg Learn python , 5 minutes Introduction to Java , 30 minutes Write an algorithm to squeeze as many possible courses into two 6 hour slota