Java Please Complete Full Program Exactly Says Required Prompt Problem K Worst Values Find Q37099693

**********************************In Java******************Please complete the full program, and exactly as it says in therequired prompt *********************

Problem – K-Worst Values

Find the k-worst (i.e. smallest) values in a set of data. Assumeyou are given a sequence of values, one value at a time. We do notknow how many elements there are in this sequence. In fact, therecould be infinitely many. Implement the class
KWorstCounter<T extends Comparable<? super T>>implements KWorst<T> that keeps track of the k-smallestelements seen so far in a sequence of data. The class should havetwo methods:

  • public void count(T x) – process the next element in the set ofdata. This operation must run

    OR
    OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.