joshuamcewen / and-lights-challenge Goto Github PK
View Code? Open in Web Editor NEWThere is a smart lamp in a room which is activated and deactivated on entry and exit. Given time intervals for which people enter and exit (at n minutes), calculate how many minutes the lamp is active.