Skip to content

2 1 月, 2022

LeetCode: 1010-Pairs of Songs With Total Durations Divisible by 60 解題紀錄

Last Updated on 2022-01-02 by Clay

題目

You are given a list of songs where the ith song has a duration of time[i] seconds.

Return the number of pairs of songs for which their total duration in seconds is divisible by 60. Formally, we want the number of indices i, j such that i < j with (time[i] + time[j]) % 60 == 0.
Read More »LeetCode: 1010-Pairs of Songs With Total Durations Divisible by 60 解題紀錄
Exit mobile version