An easy one but not easy to write a bug-free one in one try. need to be careful about the boundary and carry problem
here is my solution: https://github.com/JSerZANP/leetCode_...
Hi I'm a JavaScript engineer who is not good at algorithms,
and currently practicing leetCode online. If you are interested, maybe we can learn together.