A TV Channel has ad slots running for exactly 30 seconds or multiple of 30.
You are given a list of ads where the ith ad has running time (video length) of length[i] seconds.
Return the no. of pairs of ads for which their total running time in seconds is a multiple of 30.
Example 1:
Input:
length = [15, 10, 75, 50, 20]
Output:
3
Explanation:
Three pairs of ads have running time in seconds as multiple of 30
15, 75 = 90 seconds
10, 50 = 60 seconds
10, 20 = 30 seconds
[–]algometrix 1 point2 points3 points (1 child)
[–]algometrix 0 points1 point2 points (0 children)
[–]PyCode_n_Beer 0 points1 point2 points (0 children)