Search⌘ K
AI Features

Pairs of Songs With Total Durations Divisible by 60

Pairs of Songs With Total Durations Divisible by 60 counts distinct pairs in an array of song durations whose combined time is divisible by 60, returning the total number of qualifying pairs.

Statement

You are given a list of songs, where the duration of each song is represented by an integer array time ...