#3184

Count Pairs That Form a Complete Day I

newbie · 205 · lc easy +16 · 78% accepted · 162 likes · top 89%

Description

Given an integer array hours, count pairs (i, j) with i < j such that hours[i] + hours[j] is a multiple of 24.

Code

1
2
3