Pergunta de entrevista da empresa Google

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

Resposta da entrevista

Sigiloso

9 de mar. de 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.