Joe Wilson

Joe Wilson

  • NA
  • 7.8k
  • 418.2k

How to multiply two number which are in a link list in C++?

Sep 22 2014 4:55 AM
I mean multiply two numbers which every  digits are in every node of the link list finally put the digits of the result in every node of link list like I explained before.
For example: 
Note: suppose the list below is link list and the digits in them are the data of node in link list.

first Number:
 1 2 0
  second Number:
 1 0 0 0
 
 the result of multiply:
 1 2 0 0 0 0
 

Answers (14)