Amazon OA
Anonymous User
1764

Q1.
image
image
image

Q2.
image
image

Q3. You are given an number of songs in an album array, album size array and an genre array.

No. of songs : {8,4,5,6,7,9}
AlbumSize(in KBs): {100,150,55,75,71,15}
Genre: {"pop","jazz", "country" , "Latin", "Electro" , "jazz"}
Maximum Capacity: 300

Your goal is to maximize the total number of songs within the maximum capacity such that there is no repeated genre (You can select only one album from one particular genre).

Comments (10)