Untitled

 avatar
unknown
plain_text
a year ago
332 B
5
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...