(l *structures.ListNode)
| 48 | } |
| 49 | |
| 50 | func depthFirstNum(l *structures.ListNode) *big.Int { |
| 51 | if l == nil { |
| 52 | return big.NewInt(0) |
| 53 | } |
| 54 | |
| 55 | v := depthFirstNum(l.Next) |
| 56 | return v.Mul(v, big.NewInt(10)).Add(v, big.NewInt(int64(l.Val))) |
| 57 | } |
| 58 | |
| 59 | func addTwoNumbers2(l1 *structures.ListNode, l2 *structures.ListNode) *structures.ListNode { |
| 60 | carry := 0 |