Skip to content

Commit 3b11bd2

Browse files
committed
update file structure of array
1 parent 4287b71 commit 3b11bd2

13 files changed

+14
-14
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ LeetCode 💖 Swift,攻克[数据结构](#数据结构)与[算法](#算法)。
2121

2222
### 数组
2323

24-
| 标题 | 标签 | 描述 | 题解 |
25-
| :----------------------------------------------------------- | :--------------------: | :----------------------------------------------------------- | :----------------------------------------------------: |
26-
| [1. 两数之和](https://leetcode-cn.com/problems/two-sum/) | `数组` `哈希表` | 给定一个整数数组和目标值,找出和为目标值的那两个整数。 | [Swift](./001_TwoSum.swift) |
27-
| [724. 寻找数组的中心索引](https://leetcode-cn.com/problems/find-pivot-index/) | `数组` | 给定一个整数数组,找出「中心索引」 | [Swift](./724_FindPivotIndex.swift) |
28-
| [747. 至少是其他数字两倍的最大数](https://leetcode-cn.com/problems/largest-number-at-least-twice-of-others/) | `数组` | 查找数组中的最大元素是否至少是数组中每个其他数字的两倍。 | [Swift](./747_LargestNumberAtLeastTwiceofOthers.swift) |
29-
| [66. 加一](https://leetcode-cn.com/problems/plus-one/) | `数组` | 给定一个由**整数**组成的**非空**数组所表示的非负整数,在该数的基础上加一。 | [Swift](./66_PlusOne.swift) |
30-
| [498. 对角线遍历](https://leetcode-cn.com/problems/diagonal-traverse/) | `数组` | 给定一个含有 M x N 个元素的矩阵(M 行,N 列),请以对角线遍历的顺序返回这个矩阵中的所有元素 | [Swift](./498_Diagonal_Traverse.swift) |
31-
| [118. 杨辉三角](https://leetcode-cn.com/problems/pascals-triangle/) | `数组` | 给定一个非负整数 *numRows,*生成杨辉三角的前 *numRows*| [Swift](./118_Pascal's_Triangle.swift) |
32-
| [283. 移动零](https://leetcode-cn.com/problems/move-zeroes/) | `数组` | 给定一个数组 `nums`,编写一个函数将所有 `0` 移动到数组的末尾,同时保持非零元素的相对顺序。 | [Swift](283_MoveZeroes.swift) |
33-
| [27. 移除元素](https://leetcode-cn.com/problems/remove-element/) | `数组` | 给定一个数组 *nums* 和一个值 *val*,你需要[原地](https://baike.baidu.com/item/原地算法)移除所有数值等于 *val* 的元素,返回移除后数组的新长度。 | [Swift](27_RemoveElement.swift) |
34-
| [26. 删除排序数组中的重复项](https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array/) | `数组` | 给定一个排序数组,你需要在[原地](http://baike.baidu.com/item/原地算法)删除重复出现的元素,使得每个元素只出现一次,返回移除后数组的新长度。 | [Swift](26_RemoveDuplicatesFromSortedArray.swift) |
35-
| [75. 颜色分类](https://leetcode-cn.com/problems/sort-colors/) | `数组` `排序` `双指针` | 给定一个包含红色、白色和蓝色,一共 *n* 个元素的数组,[原地](https://baike.baidu.com/item/原地算法)对它们进行排序,使得相同颜色的元素相邻,并按照红色、白色、蓝色顺序排列。 | [Swift](75_SortColors.swift) |
36-
| [215. 数组中的第K个最大元素](https://leetcode-cn.com/problems/kth-largest-element-in-an-array/) | `数组` `排序` `多指针` | 在未排序的数组中找到第 **k** 个最大的元素。请注意,你需要找的是数组排序后的第 k 个最大的元素,而不是第 k 个不同的元素。 | [Swift](215_FindKthLargestInAnArray.swift) |
37-
| [88. 合并两个有序数组](https://leetcode-cn.com/problems/merge-sorted-array/) | `数组` `双指针` | 给定两个有序整数数组 *nums1**nums2*,将 *nums2* 合并到 *nums1***使得 *num1* 成为一个有序数组。 | [Swift](./88_MergeSortedArray.swift) |
24+
| 标题 | 标签 | 描述 | 题解 |
25+
| :----------------------------------------------------------- | :--------------------: | :----------------------------------------------------------- | :----------------------------------------------------------: |
26+
| [1. 两数之和](https://leetcode-cn.com/problems/two-sum/) | `数组` `哈希表` | 给定一个整数数组和目标值,找出和为目标值的那两个整数。 | [Swift](./Array/001_TwoSum.swift) |
27+
| [724. 寻找数组的中心索引](https://leetcode-cn.com/problems/find-pivot-index/) | `数组` | 给定一个整数数组,找出「中心索引」 | [Swift](./Array/724_FindPivotIndex.swift) |
28+
| [747. 至少是其他数字两倍的最大数](https://leetcode-cn.com/problems/largest-number-at-least-twice-of-others/) | `数组` | 查找数组中的最大元素是否至少是数组中每个其他数字的两倍。 | [Swift](./Array/747_LargestNumberAtLeastTwiceofOthers.swift) |
29+
| [66. 加一](https://leetcode-cn.com/problems/plus-one/) | `数组` | 给定一个由**整数**组成的**非空**数组所表示的非负整数,在该数的基础上加一。 | [Swift](./Array/66_PlusOne.swift) |
30+
| [498. 对角线遍历](https://leetcode-cn.com/problems/diagonal-traverse/) | `数组` | 给定一个含有 M x N 个元素的矩阵(M 行,N 列),请以对角线遍历的顺序返回这个矩阵中的所有元素 | [Swift](./Array/498_Diagonal_Traverse.swift) |
31+
| [118. 杨辉三角](https://leetcode-cn.com/problems/pascals-triangle/) | `数组` | 给定一个非负整数 *numRows,*生成杨辉三角的前 *numRows*| [Swift](./Array/118_Pascal's_Triangle.swift) |
32+
| [283. 移动零](https://leetcode-cn.com/problems/move-zeroes/) | `数组` | 给定一个数组 `nums`,编写一个函数将所有 `0` 移动到数组的末尾,同时保持非零元素的相对顺序。 | [Swift](./Array/283_MoveZeroes.swift) |
33+
| [27. 移除元素](https://leetcode-cn.com/problems/remove-element/) | `数组` | 给定一个数组 *nums* 和一个值 *val*,你需要[原地](https://baike.baidu.com/item/原地算法)移除所有数值等于 *val* 的元素,返回移除后数组的新长度。 | [Swift](./Array/27_RemoveElement.swift) |
34+
| [26. 删除排序数组中的重复项](https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array/) | `数组` | 给定一个排序数组,你需要在[原地](http://baike.baidu.com/item/原地算法)删除重复出现的元素,使得每个元素只出现一次,返回移除后数组的新长度。 | [Swift](./Array/26_RemoveDuplicatesFromSortedArray.swift) |
35+
| [75. 颜色分类](https://leetcode-cn.com/problems/sort-colors/) | `数组` `排序` `双指针` | 给定一个包含红色、白色和蓝色,一共 *n* 个元素的数组,[原地](https://baike.baidu.com/item/原地算法)对它们进行排序,使得相同颜色的元素相邻,并按照红色、白色、蓝色顺序排列。 | [Swift](./Array/75_SortColors.swift) |
36+
| [215. 数组中的第K个最大元素](https://leetcode-cn.com/problems/kth-largest-element-in-an-array/) | `数组` `排序` `多指针` | 在未排序的数组中找到第 **k** 个最大的元素。请注意,你需要找的是数组排序后的第 k 个最大的元素,而不是第 k 个不同的元素。 | [Swift](./Array/215_FindKthLargestInAnArray.swift) |
37+
| [88. 合并两个有序数组](https://leetcode-cn.com/problems/merge-sorted-array/) | `数组` `双指针` | 给定两个有序整数数组 *nums1**nums2*,将 *nums2* 合并到 *nums1***使得 *num1* 成为一个有序数组。 | [Swift](./Array/88_MergeSortedArray.swift) |
3838

3939

4040

0 commit comments

Comments
 (0)