Question: please help with these, thank you so much! 7. [10] Assume the node structure is defined as follows: typedef struct node { int data; struct

please help with these, thank you so much! please help with these, thank you so much! 7. [10] Assume the

7. [10] Assume the node structure is defined as follows: typedef struct node { int data; struct node *next; } node; please write a function node *hash_lists(node **h, int data) that takes (1) an array h of pointers of type 'node *, (2) a non repeated int data to put data in one of linked lists pointers to by the pointers in array h by using the following rule. The integer data is inserted in the linked list pointerd to by h[data%10], where the array h is of size 10. Every linked list is in the increasing order. The return type is the linked list that stores data. [10] Assume an integer array of size 10, int list[10]={9.2.4,5,8,1,3,10,6,7). Write a function that take the array and create two singly linked lists in the increasing order, where one contains even numbers and the other contains odd numbers. Please design your function prototype and explain

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!