1. You are given a linkedlist of a number 2. Delete alternate nodes using iteration
Input Format
Input has been managed for you
Output Format
Output has been managed for you
Constraints
n<=10^4
Notice
Try First, Check Solution later
1. You should first read the question and watch the question video.2. Think of a solution approach, then try and submit the question on editor tab.3. We strongly advise you to watch the solution video for prescribed approach.Example
Input
6 1 2 3 4 5 6
Output
1 3 5