Microsoft interview question

How would you design an alarm clock program?

Interview Answer

Anonymous

Oct 28, 2015

The difficulty of it is that you don't want to constantly be checking if an alarm should go off because that's inefficient, but you also don't want to wait too long to check because then you might miss the alarm.