//operating system linux,ubuntu,Mac #include #include #include #include // for Time using namespace std; struct Node { int number; struct Node* nextNode; }; //append Method Implementation void append(struct Node** head, int num) { if (*head == NULL) { // checking if first node is NULL or not (*head) = (struct Node*)malloc(sizeof(struct Node)); (*head)->number = num; (*head)->nextNode = NULL; } else { struct Node* temp = *head; while (temp->nextNode != NULL) { temp = temp->nextNode; } struct Node* newNode = (struct Node*)malloc(sizeof(struct Node)); //dynamically allocation of memory newNode->number = num; newNode->nextNode = NULL; temp->nextNode = newNode; } } /* Getting Node with value from List*/ Node* search(struct Node** head, int value) { clock_t begin = clock(); std::cout<number == value) { clock_t end = clock(); std::cout<nextNode; } return NULL; } /*Display List Method Implementation*/ void printList(struct Node* head) { while (head != NULL) { std::cout << head->number << \" \"; head = head->nextNode; } std::cout << endl; } int main(int argc, char *argv[]) { struct Node* head = NULL,*temp; srand(time(0)); if ( argc != 3 ) // argc should be 2 for correct execution // We print error message std::cout<<\"Please Enter 3 argument\"< Solution //operating system linux,ubuntu,Mac #include #include #include #include // for Time using namespace std; struct Node { int number; struct Node* nextNode; }; //append Method Implementation void append(struct Node** head, int num) { if (*head == NULL) { // checking if first node is NULL or not (*head) = (struct Node*)malloc(sizeof(struct Node)); (*head)->number = num; (*head)->nextNode = NULL; } else { struct Node* temp = *head; while (temp->nextNode != NULL) { temp = temp->nextNode; } struct Node* newNode = (struct Node*)malloc(sizeof(struct Node)); //dynamically allocation of memory newNode->number = num; newNode->nextNode = NULL; temp->nextNode = newNode; } } /* Getting Node with value from List*/ Node* search(struct Node** head, int value) { clock_t begin = clock(); std::cout<number == value) { clock_t end = clock(); std::cout<nextNode; } return NULL; } /*Display List Method Implementation*/ void printList(struct Node* head) { while (head != NULL) { std::cout << head->number << \" \"; head = head->nextNode; } std::cout << endl; } int main(int argc, char *argv[]) { struct Node* head = NULL,*temp; srand(time(0)); if ( argc != 3 ) // argc should be 2 for correct execution // We print error message std::cout<<\"Please Enter 3 argument\"<.