LuoJunC

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2017年2月22日

摘要: 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 like: 阅读全文
posted @ 2017-02-22 17:02 LuoJunC 阅读(97) 评论(0) 推荐(0) 编辑

摘要: Given a non-empty integer array, find the minimum number of moves required to make all array elements equal, where a move is incrementing a selected e 阅读全文
posted @ 2017-02-22 16:28 LuoJunC 阅读(116) 评论(0) 推荐(0) 编辑

摘要: Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at 阅读全文
posted @ 2017-02-22 15:40 LuoJunC 阅读(91) 评论(0) 推荐(0) 编辑

摘要: Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements that appear twi 阅读全文
posted @ 2017-02-22 14:06 LuoJunC 阅读(117) 评论(0) 推荐(0) 编辑

摘要: In LLP world, there is a hero called Teemo and his attacking can make his enemy Ashe be in poisoned condition. Now, given the Teemo's attacking ascend 阅读全文
posted @ 2017-02-22 11:23 LuoJunC 阅读(90) 评论(0) 推荐(0) 编辑