Computer Science, asked by ananya4204, 1 year ago

Write an algorithm for represented polynomials using linked list

Answers

Answered by vigni2004
3
Traverse both lists. One by one pick nodes of both lists and add the values. If sum is more than 10 then make carry as 1 and reduce sum. If one list has more elements than the other then consider remaining values of this list as 0. Following is the implementation of this approach.

Royalshibumishra: Google copy
Similar questions