Back to problems

Add Two Reversed Digit Lists

Algorithm · Cisco · Medium

Requirements The first input row provides list1_size, which indicates how many elements are in the first list. The second row lists the digits belonging to that first list. The third input row gives list2_size, the length of the second list. The fourth row supplies the digits for the second list. Each list stores its number with the least significant digit first. Output K integers separated by spaces; these must be the sum's digits in least-significant-digit-first order.…

Checking your access…