DAYS
HOUR
MINS
SEC
Error
Given a linked list. Print all the elements of the linked list.
Example 1:
Input: N=2 LinkedList={1 , 2} Output: 1 2 Explanation: The linked list contains two elements 1 and 2.The elements are printed in a single line.
Example 2:
Input: N = 3 Linked List = { 49, 10, 30} Output: 49 10 30 Explanation: The linked list contains 3 elements 49, 10 and 30. The elements are printed in a single line.
We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?
Yes