Skip to content

Latest commit

 

History

History

2.Add-Two-Numbers

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

题目并不难,按照加法每一位对应进行计算即可。

需要注意两点:

  • 其中一个list比另一个长
  • 两个list加和最后的进位是1,需要多加一位。比如(9 -> 9) + (1) = (0 -> 0 -> 1)