首页 > 其他 > 详细

Leetcode: plus one

时间:2015-08-03 06:28:50      阅读:243      评论:0      收藏:0      [点我收藏+]

June 22, 2015

Given a number represented as an array of digits, plus one to the number.

Leetcode: plus one, 喜欢这道题, 看看有哪些解法; 一个个试过来. (6种方法)

Read the web blogs, and then, try different solutions.

practice using C#, the source code on github:

Try different solutions through blogs, and then, catch up something interesting; basic programming styles, for loop, while loop, and different ways to check carry, using %, /, ==10, ==9; one problem can be interpreted with different solutions. Fun time to play with source code, and get familiar with basic C# stuff, array, initialization.

 

 

 

Leetcode: plus one

原文:http://www.cnblogs.com/juliachenOnSoftware/p/4697224.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!