排序是算法里面最多的一种类型算法之一。而 LeetCode 的大多数题,并不要求你必须用某种排序算法解决,而很多语言类似Java内建的排序性能很好,也符合 LeetCode 的要求,于是这个专题主要讲一般的排序题(往往用自建库就可以简单解决),特定的排序才能解决的问题,回头在整理成为专题。
相关题目列表:
- 56. Merge Intervals
- 57. Insert Interval
- 75. Sort Colors
- 147. Insertion Sort List
- 164. Maximum Gap
- 179. Largest Number
- 242. Valid Anagram
- 349. Intersection of Two Arrays
- 350. Intersection of Two Arrays II
- 922. Sort Array By Parity II
- 973. K Closest Points to Origin
- 1122. Relative Sort Array