Question 14

Implement a function that returns the i-th most popular item sold

at xyz company. You cannot rely on any libraries.

Class Item {

String itemId;

int quantitySold;

}

/**

find the i-th most popular item in the list

**/

String find(List items, int i) {

// your code goes here

}

[advanced_iframe securitykey=”undefined” src=”https://code.kodnest.com/” width=”100%” height=”600″]

KodNest Training New Batch is starting on 02nd November 2020. Attend one week free demo classes.Register Now

New Report

Close