Pattern Recognition
#3easy
Playlist Song Pairing
A music app wants to suggest song pairs whose combined duration equals exactly the playlist target length T. Given an array of song durations, find all unique pairs (i, j) where durations[i] + durations[j] == T. Return the count of such pairs.