Object-Oriented Programming · Netflix · Medium
Music Playlist Coding / Software Engineer Create a data structure that records music listening events together with their timestamps. Implement the MusicPlaylist class: MusicPlaylist() Creates an empty playlist object. void add(String song, int timestamp) Records that song was played at timestamp. List getAll() Produces every recorded song in listening order, sorted by timestamp. When timestamps are equal, preserve the order in which those records were added. boolean…
Checking your access…