代码码着玩
krystalhuang
这个作者很懒,什么都没留下…
展开
-
Lintcode51 Previous Permutation solution 题解
【题目描述】Given a list of integers, which denote a permutation.Find the previous permutation in ascending order.Notice:The list may contains duplicate integers.给定一个整数数组来表示排列,找出其上一个排列。注意:排列中可能包转载 2017-05-15 18:07:15 · 251 阅读 · 0 评论 -
Lintcode46 Majority Number solution 题解
【题目描述】Given an array of integers, the majority number is the number that occurs more than half of the size of the array. Find it.Notice:You may assume that the array is non-empty and the m转载 2017-05-09 00:04:25 · 221 阅读 · 0 评论 -
Lintcode47 Majority Number II solution 题解
Lintcode47 Majority Number II solution 题解【题目描述】Given an array of integers, the majority number is the number that occurs more than 1/3 of the size of the array.Find it.Notice:There is only o转载 2017-05-09 23:09:42 · 258 阅读 · 0 评论