Skip to content

Commit 24df9d6

Browse files
committed
更新代码和示例
1 parent 736bbbf commit 24df9d6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+995
-945
lines changed

README.md

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
1111
## 内容
1212

13-
[数组](docs/array.md)
13+
[数组](docs/array2.md)
1414

1515
[链表](docs/list.md)
1616

@@ -54,21 +54,30 @@
5454

5555
### 数组
5656

57-
- [寻找数组的中心索引](https://github.com/dunwu/algorithm/blob/master/codes/data-structure/src/main/java/io/github/dunwu/ds/array/FindPivotIndex.java)
58-
- [至少是其他数字两倍的最大数](https://github.com/dunwu/algorithm/blob/master/codes/data-structure/src/main/java/io/github/dunwu/ds/array/LargestNumberAtLeastTwiceOfOthers.java)
59-
- [加一](https://github.com/dunwu/algorithm/blob/master/codes/data-structure/src/main/java/io/github/dunwu/ds/array/PlusOne.java)
60-
- [对角线遍历](https://github.com/dunwu/algorithm/blob/master/codes/data-structure/src/main/java/io/github/dunwu/ds/array/DiagonalTraverse.java)
61-
- [螺旋矩阵](https://github.com/dunwu/algorithm/blob/master/codes/data-structure/src/main/java/io/github/dunwu/ds/array/SpiralMatrix.java)
62-
- [杨辉三角](https://github.com/dunwu/algorithm/blob/master/codes/data-structure/src/main/java/io/github/dunwu/ds/array/PascalsTriangle.java)
63-
- [杨辉三角 II](https://github.com/dunwu/algorithm/blob/master/codes/data-structure/src/main/java/io/github/dunwu/ds/array/PascalsTriangle2.java)
64-
- [数组拆分 I](https://github.com/dunwu/algorithm/blob/master/codes/data-structure/src/main/java/io/github/dunwu/ds/array/ArrayPartition.java)
65-
- [两数之和 II - 输入有序数组](https://github.com/dunwu/algorithm/blob/master/codes/data-structure/src/main/java/io/github/dunwu/ds/array/TwoSum2InputArrayIsSorted.java)
66-
- [移除元素](https://github.com/dunwu/algorithm/blob/master/codes/data-structure/src/main/java/io/github/dunwu/ds/array/RemoveElement.java)
67-
- [最大连续 1 的个数](https://github.com/dunwu/algorithm/blob/master/codes/data-structure/src/main/java/io/github/dunwu/ds/array/MaxConsecutiveOnes.java)
68-
- [长度最小的子数组](https://github.com/dunwu/algorithm/blob/master/codes/data-structure/src/main/java/io/github/dunwu/ds/array/MinimumSizeSubarraySum.java)
69-
- [旋转数组](https://github.com/dunwu/algorithm/blob/master/codes/data-structure/src/main/java/io/github/dunwu/ds/array/RotateArray.java)
70-
- [删除排序数组中的重复项](https://github.com/dunwu/algorithm/blob/master/codes/data-structure/src/main/java/io/github/dunwu/ds/array/RemoveDuplicatesFromSortedArray.java)
71-
- [移动零](https://github.com/dunwu/algorithm/blob/master/codes/data-structure/src/main/java/io/github/dunwu/ds/array/MoveZeros.java)
57+
- 三数之和
58+
- 两数之和
59+
- 二维数组
60+
- 删除排序数组中的重复项
61+
- 加一
62+
- 在排序数组中查找元素的第一个和最后一个位置
63+
- 在排序数组中查找数字 I
64+
- 存在重复元素
65+
- 对角线遍历
66+
- 寻找数组的中心索引
67+
- 将数组分成和相等的三个部分
68+
- 数组二分查找
69+
- 数组拆分 1
70+
- 旋转数组
71+
- 旋转矩阵
72+
- 最大连续 1 的个数
73+
- 杨辉三角
74+
- 杨辉三角 2
75+
- 移动零
76+
- 移除元素
77+
- 至少是其他数字两倍的最大数
78+
- 螺旋矩阵
79+
- 长度最小的子数组
80+
- 零矩阵
7281

7382
### 字符串
7483

codes/algorithm/pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,10 @@
3434
<dependency>
3535
<groupId>org.junit.jupiter</groupId>
3636
<artifactId>junit-jupiter</artifactId>
37-
<scope>test</scope>
3837
</dependency>
3938
<dependency>
4039
<groupId>org.assertj</groupId>
4140
<artifactId>assertj-core</artifactId>
42-
<scope>test</scope>
4341
</dependency>
4442
</dependencies>
4543
</project>

codes/algorithm/src/main/java/io/github/dunwu/algorithm/array/ArrayAlgorithm.java

Lines changed: 0 additions & 319 deletions
This file was deleted.

0 commit comments

Comments
 (0)