The element must be added in the right location in the sorted linked list according to the training time.

computer science

Description

Write a variadic function that given an already defined linked list (MYDAY) and a variadic number of MYTRAINING elements add them to the defined linked list. The list provided is sorted by training time in ascending order.


(1) The element must be added in the right location in the sorted linked list according to the training time. 


2) If there is already an element with that date and the same training time, the function must tell the user that the entry is already on the list and exit without modifying the linked list 


(3) The function should notify the user about: (1) the number of elements added and (2) the number of elements that already exist.



Related Questions in computer science category