subject
Geography, 25.07.2019 01:30 mlbaker265

Complete the following three linked list functions according to the provided specifications. use full c code. you may use the ll-node. h and ll. h files online as starting points in all cases, you should assume that a linked list data type is composed of two fields, a pointer to the head node, a pointer to the tail node, but both null if empty. each node contains two fields: its value data and a pointer to the next node in the chain. assume all linked lists and node sequences are valid. sample suppose we have the following input list l l: 17 head: 42 36 48 14 36 null tail: a) complete the function spliceinto (l, x, i) which inserts the integer x into index location i of list i.. if location i length of list 1, then it appends node containing x at the end. for example: 53 spliceinto (l, 53, 4) head: 42 36 14 17 ая 36 null tail: // post: inserts node with data x into location i of list l int i) void spliceinto (ll_t l. int x, b) complete the function reverse (l) which reverses the list l. for example: submit written parts (q1,2,3) in csil dropbox, electronic parts (q3) on coursys reverse (l) : 48 head: 36 36 17 14 42 null tail: // post: void reverse (ll_t nodes of list l are now reversed l) c) complete the function removenumber (l, target) which removes (all instances of) the target from lif target is found in 1 and does nothing otherwise. if successfully removed, return 0. otherwise, return 1. // post: removes data target from list l unsigned int removenumber (l1_t l, int target) d) complete the function numberofevens (l) which counts the number of even numbers in i and returns that number. in our list, the answer would be 5. returns the number of even numbers from list l // post: unsigned int numberofevens (ll t l) complete the function merge (l1, l2) which is the merge function for two lists l1 and l2. you may assume that l1 and l2 are in sorted order. upon return, the list l1 will contain the el merged list, l2 will be freed // pre: l1 and l2 are ordered linked 1lists // post: l1 contains the merged (ordered) list of l1 and 12, 12 is freed void merge (ll t l1, ll t l2)( for example, given 11 null 62 32 4t head tail : 12 3 nell 1p 11 head tail the result of the merge should be as follows: merge (l1,l2) 11: 33 32 19 17 1 14 head: tail: null 52 55 48 48 36 35 l2:

ansver
Answers: 3

Other questions on the subject: Geography

image
Geography, 23.06.2019 13:00, chaserandall2004
What is the difference between the cultures of central asia and the caucasus region? the majority of people in central asia are muslim; the majority in the caucasus region are christian. the primary language in central asia is armenian; the primary language in the caucasus region is russian. central asia has been plagued by ethnic unrest; the caucasus region has had little ethnic conflict. the effects of soviet rule can still be seen in central asia; the caucasus region has developed its own identity since the fall of the ussr.
Answers: 2
image
Geography, 23.06.2019 16:30, bakaoffire
The rwandan patriotic front and the interahamwe were a. relief agencies b. military groups c. political parties d. nonprofit organizations select the best answer from the choices provided. a b c d
Answers: 1
image
Geography, 24.06.2019 15:10, KarateKat
Much of the region of central africa is forest and savanna. select the best answer from the choices provided t f
Answers: 2
image
Geography, 24.06.2019 22:30, asenath6477
Question 15 of 50 which of the following equipment is strongly recommended when cleaning a firearm? a, arm guards a, arm guards arm guards b, black powder or its equivalent b, black powder or its equivalent black powder or its equivalent c, bullet puller c, bullet puller bullet puller d, latex gloves d, latex gloves latex gloves
Answers: 1
You know the right answer?
Complete the following three linked list functions according to the provided specifications. use ful...

Questions in other subjects:

Konu
Mathematics, 31.01.2020 19:45
Konu
History, 31.01.2020 19:45