employer cover photo
employer logo
employer logo

Spiceworks Ziff Davis

Part of Ziff Davis

Is this your company?

Spiceworks Ziff Davis Interview Question

Write a code the returns the angle between the hour and minute hand

Interview Answer

Anonymous

Oct 16, 2016

int getAngle(int hours, int mins) { minutes /= 5; if(hours == 12) hours = 0; return Math.abs(hours - minutes) * 30; }