Absolute difference between sum of alternate node of Linked List
Given a singly linked list containing N nodes, the task is to find the absolute difference between the sum of an alternate node of the linked list. Examples: Input: List = 15 -> 16 -> 6 -> 7 -> 17Output: 15Explanation: sum1 = 15 + 6 + 17 = 38, sum2 = 16 + 7 = 23, absolute diff = abs(38-2