char from_city[30]; char to_city[30]; char *search_city;
Problem Requirements:
typedef struct node { int value; struct node *next; } Node;
Node *extract_list(Node *L, Node *P);
3 10 12You should assume that you have the following definition for a list node:
typedef struct node { struct node *next; int value; } Node;The lists do not have sentinel nodes so the pointers passed to your function point directly to the first nodes on their respective lists. The last element of each list will point to null (0). Your solution should take advantage of the fact that the two lists are sorted and traverse each list only once.
void print_common_elements(Node *L1, Node *L2) {
Problem Requirements:
Node *reverse(Node *input_list);