Untitled

Anonymous
plain_text
10/24/2023 5:22 AM
444 B
17
Indexable
Let L be a singly linked list and it has 'n' nodes. Write a C code to compute the maximum element in the list L and and  also delete element which is preceded by the last element in the list L.

Input format

list size n

elements in the list

Output format

maximum element

List after deleting the last but one element
Editor is loading...