2017年8月29日

LeetCode: 258 Add Digits(easy)

摘要: 题目: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is l 阅读全文

posted @ 2017-08-29 17:47 玲珑子 阅读(86) 评论(0) 推荐(0) 编辑

LeetCode: 448 Find All Numbers Disappeared in an Array(easy)

摘要: 题目: Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements of [1, 阅读全文

posted @ 2017-08-29 17:12 玲珑子 阅读(113) 评论(0) 推荐(0) 编辑

导航