排序
Wonz
后端 -> 全栈 -> 后端
技术很菜,但一直在学习。
「人们会被自己热爱的事物改变」
展开
-
LeetCode | 1387. Sort Integers by The Power Value将整数按权重排序【Python】
LeetCode 1387. Sort Integers by The Power Value将整数按权重排序【Medium】【Python】【排序】原创 2020-03-22 10:02:40 · 948 阅读 · 0 评论 -
LeetCode | 1370. Increasing Decreasing String上升下降字符串【Python】
LeetCode 1370. Increasing Decreasing String上升下降字符串【Easy】【Python】【排序】ProblemLeetCodeGiven a string s. You should re-order the string using the following algorithm:Pick the smallest character fro...原创 2020-03-08 13:36:38 · 769 阅读 · 0 评论 -
LeetCode | 1366. Rank Teams by Votes通过投票对团队排名【Python】
LeetCode 1366. Rank Teams by Votes通过投票对团队排名【Medium】【Python】【排序】ProblemLeetCodeIn a special ranking system, each voter gives a rank from highest to lowest to all teams participated in the competit...原创 2020-03-01 22:31:58 · 549 阅读 · 0 评论 -
LeetCode | 0075. Sort Colors颜色分类【Python】
LeetCode 0075. Sort Colors颜色分类【Medium】【Python】【荷兰旗】ProblemLeetCodeGiven an array with n objects colored red, white or blue, sort them in-place so that objects of the same color are adjacent, with...原创 2020-02-15 19:27:38 · 331 阅读 · 0 评论 -
LeetCode | 0451. Sort Characters By Frequency根据字符出现频率排序【Python】
LeetCode 0451. Sort Characters By Frequency根据字符出现频率排序【Medium】【Python】【桶排序】ProblemLeetCodeGiven a string, sort it in decreasing order based on the frequency of characters.Example 1:Input:"tree"...原创 2020-02-15 16:36:29 · 360 阅读 · 0 评论 -
LeetCode | 0347. Top K Frequent Elements前 K 个高频元素【Python】
LeetCode 0347. Top K Frequent Elements前 K 个高频元素【Medium】【Python】【桶排序】ProblemLeetCodeGiven a non-empty array of integers, return the k most frequent elements.Example 1:Input: nums = [1,1,1,2,2,3]...原创 2020-02-14 22:42:12 · 226 阅读 · 0 评论 -
LeetCode | 0215. Kth Largest Element in an Array数组中的第K个最大元素【Python】
LeetCode 0215. Kth Largest Element in an Array数组中的第K个最大元素【Medium】【Python】【快排】【堆】ProblemLeetCodeFind the kth largest element in an unsorted array. Note that it is the kth largest element in the so...原创 2020-02-14 21:28:45 · 337 阅读 · 1 评论