Google Interview Question

Create a function which returns the angle of the clock's hour and minute hands.

Interview Answer

Anonymous

Mar 9, 2011

First the problem is purposely obscure as it does not say whether the angle is accute or obtuse, so be sure to ask for this detail. Also, make sure you take into account the hour angle in relation to the minutes, as the hour is not always exactly on the hour marker.