Leetcode: plus one

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.

 

 

 

posted on 2015-08-03 02:34  juliachen  阅读(281)  评论(0编辑  收藏  举报

导航