(Solved) : Given Two Non Empty Linked Lists Representing Non Negative Integer Nodes List Contain Digi Q35835434 . . .

java language
You are given two non-empty linked lists, each representing a non-negative integer. The nodes of each list contain the digits of the corresponding integer, where the most significant digit comes first. Add the two integers and return their sum as a linked list of integers. You may assume the two numbers do not contain any leading zero, except the number 0 itself. Example: Input: (7,2,4,3)+(5,6,4) Output: 7,8,0,7 243+564-7807 The first line of input is an integer representing the number of test cases. Each test case is made up of two lines of positive integers to be filled in the linked sts indicates the end of digits for an input integer). The input should be read from a file called “lab7prob4.txt”, and the output is to the screen Output: 17, 8, 0, 7] Sample Input: 4 7243- 564- 1,0 [1,91 333-1 15-1 4-1 0-1 0-1 Show transcribed image text
Expert Answer
Answer to Given Two Non Empty Linked Lists Representing Non Negative Integer Nodes List Contain Digi Q35835434 . . .
OR