码迷,mamicode.com
首页 > 其他好文 > 详细

Leetcode: plus one

时间:2015-08-03 06:29:15      阅读:150      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!