import java.util.ArrayList; public class TRAI_24_X2_skeleton implements TRAI_24_X2 { // ^^^^^ // own userid here /** * SELF-EVALUATION HERE: * * * */ /** * Difference of two lists that are in ascending order. * * Returns a new list that contains all the elements that are in list L1 * but are not in list L2. If an element is in L1 several times, but not in list L2 at all, * it will be in result list as many times as it is in list L1. * If an element is in L2 at least once, it will not be in result list. * Result list will be in ascending order. * If either of the lists is not in ascending order, result can be anything. * @param A first input list, elements in ascending order * @param B second input list, elements in ascending order * @return difference list, elements in ascending order */ @Override public ArrayList differeceOfGrowingLists(ArrayList A, ArrayList B) { ArrayList result = new ArrayList<>(); // TODO // make a careful plan _before_ you write anything here // then transfer the plan to working code // use the fact that the lists are in ascending order _aready_ in the plan! return result; } }