A PHP Error was encountered

Severity: Notice

Message: Undefined index: markdown

Filename: models/Languages.php

Line Number: 47

Backtrace:

File: /mnt/disk/stikked.z-apps.ca/htdocs/application/models/Languages.php
Line: 47
Function: _error_handler

File: /mnt/disk/stikked.z-apps.ca/htdocs/application/models/Pastes.php
Line: 429
Function: code_to_description

File: /mnt/disk/stikked.z-apps.ca/htdocs/application/controllers/Main.php
Line: 536
Function: getPaste

File: /mnt/disk/stikked.z-apps.ca/htdocs/index.php
Line: 284
Function: require_once

# LC5477 Pairs of Songs With Total Durations Divisible by 60 **Approach.** Count remainders; pair r with (60 - r) % 60. ```python def numPairsDivisibleBy60(t): c, res = [0]*60, 0 for x in t: res += c[(60 - x % 60) % 60]; c[x % 60] += 1 return res ``` **Interview note.** State the invariant before coding and dry-run one edge case. For live practice, an [Linkjob AI interview assistant](https://www.linkjob.ai/) can help you rehearse explanations — see https://www.linkjob.ai/ .