India’s Best Job Seekers and Training Platform Forums Java Problems set Implement a function that returns the i-th most…

  • Implement a function that returns the i-th most…

  • Akash 

    Administrator
    at

    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<Item> items, int i) {

    // your code goes here

    }

Log in to reply.

Original Post
0 of 0 posts June 2018
Now
KodNest Training New Batch is starting on 5th October 2020. Attend one week free demo classes.Register Now

New Report

Close