桶排序
文章平均质量分 80
jmspan
这个作者很懒,什么都没留下…
展开
-
LeetCode 75. Sort Colors(颜色排序)
原题网址:https://leetcode.com/problems/sort-colors/ Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order re原创 2016-05-22 05:19:20 · 599 阅读 · 0 评论 -
LeetCode 164. Maximum Gap(最大空隙)
原题网址:https://leetcode.com/problems/maximum-gap/ Given an unsorted array, find the maximum difference between the successive elements in its sorted form. Try to solve it in linear time/space.原创 2016-05-25 01:40:27 · 691 阅读 · 0 评论 -
LeetCode 451. Sort Characters By Frequency
原题网址:https://leetcode.com/problems/sort-characters-by-frequency/ Given a string, sort it in decreasing order based on the frequency of characters. Example 1: Input: "tree" Output: "eert" Ex原创 2017-01-04 09:46:43 · 1105 阅读 · 0 评论