Search⌘ K
AI Features

Pairs of Songs With Total Durations Divisible by 60

Given an array of song durations, Pairs of Songs With Total Durations Divisible by 60 asks you to return the number of distinct pairs totaling a multiple of 60 seconds.

Statement

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