Algorithm · C3.ai · Medium
You are given a list of song lengths, each measured in seconds. Count how many pairs of songs have a total length that is an exact multiple of 60. A pair consists of two different positions i and j in the list with i < j; each such pair is counted once. Return the number of qualifying pairs. Examples Example 1 Example 2