deno.land / x / masx200_leetcode_test@10.6.5 / angle-between-hands-of-a-clock / index.ts

نووسراو ببینە
1
2
3
4
5
6
7
export default function angleClock(hour: number, minutes: number): number { const a = (360 * (hour + minutes / 60) / 12) % 360; const b = (360 * minutes / 60) % 360;
return Math.min(360 - Math.abs(a - b), Math.abs(a - b));}
masx200_leetcode_test

Version Info

Tagged at
a year ago