Question: Write down the AddInOrder method to add an element to the right place in an ordered singly linked list considering the given data structure
Write down the AddInOrder method to add an element to the right place in an ordered singly linked list considering the given data structure and function prototype. Your function must return the first item's address of the list. Then, calculate your function's Big O value. (NOTE: Justify your answers. Answers without proper explanations will get zero (0) mark!) For example, if the list contains 1 3 5 7 and if you would like to add 4, the resulting list must be look like 1 34 5 7 and so on. - typedef struct _SLL { int data; struct _SLL* next; } SLL; SLL* AddInOrder(SLL* list, int data); Activat Go to Set
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
