摘要: QuestionGiven a non-negative integernum, repeatedly add all its digits until the result has only one digit.For example:Givennum = 38, the process is l... 阅读全文
posted @ 2015-10-12 05:44 树獭君 阅读(178) 评论(0) 推荐(0) 编辑
摘要: QuestionGiven an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm s... 阅读全文
posted @ 2015-10-12 05:11 树獭君 阅读(140) 评论(0) 推荐(0) 编辑