Computer Science, asked by house7013425253, 9 months ago

write algorithm to insert new node before maximum value given in linked list​

Answers

Answered by SHIVAfaf
0

Explanation:

Algorithm: Let input linked list is sorted in increasing order. 1) If Linked list is empty then make the node as head and return it. 2) If the value of the node to be inserted is smaller than the value of the head node, then insert the node at the start and make it head.

Similar questions