Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
332 B
1
Indexable
Never
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