Multiply Two Linkedlist
easy
1. You are given two single linkedlist of digits. 2. The most significant digit comes first and each of their nodes contain a single digit. Multiply the two numbers and return it as a linked list. 3. You may assume the two numbers do not contain any leading zero, except the number 0 itself.
Constraints
0 <= N <= 10^6
Format
Input
1->2->3->4->5->null 7->8->9->null
Output
9->7->4->0->2->0->6->null
Example
Sample Input
6
6 1 3 2 4 0
2
3 5
Sample Output
2 1 4 6 3 4 0 0
Question Video