Skip to content

Commit 736bbbf

Browse files
committed
调整结构
1 parent 449a1b5 commit 736bbbf

File tree

136 files changed

+252
-331
lines changed

Some content is hidden

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

136 files changed

+252
-331
lines changed

README.md

Lines changed: 41 additions & 24 deletions

codes/algorithm/pom.xml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xmlns="http://maven.apache.org/POM/4.0.0"
2+
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
43
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
54
<modelVersion>4.0.0</modelVersion>
65

76
<parent>
87
<groupId>io.github.dunwu</groupId>
9-
<artifactId>algorithm-tutorial</artifactId>
10-
<version>1.0.0</version>
11-
<relativePath>../../</relativePath>
8+
<artifactId>dunwu-parent</artifactId>
9+
<version>0.5.6</version>
1210
</parent>
1311

12+
<groupId>io.github.dunwu.algorithm</groupId>
1413
<artifactId>algorithm</artifactId>
1514
<packaging>jar</packaging>
16-
<name>algorithm</name>
15+
<name>算法示例</name>
1716
<description>数据示例源码</description>
1817

1918
<properties>
@@ -26,8 +25,21 @@
2625
<dependencies>
2726
<dependency>
2827
<groupId>io.github.dunwu</groupId>
29-
<artifactId>data-structure</artifactId>
30-
<version>1.0.0</version>
28+
<artifactId>dunwu-tool-core</artifactId>
29+
</dependency>
30+
<dependency>
31+
<groupId>ch.qos.logback</groupId>
32+
<artifactId>logback-classic</artifactId>
33+
</dependency>
34+
<dependency>
35+
<groupId>org.junit.jupiter</groupId>
36+
<artifactId>junit-jupiter</artifactId>
37+
<scope>test</scope>
38+
</dependency>
39+
<dependency>
40+
<groupId>org.assertj</groupId>
41+
<artifactId>assertj-core</artifactId>
42+
<scope>test</scope>
3143
</dependency>
3244
</dependencies>
3345
</project>

codes/leetcode/src/main/java/io/github/dunwu/leetcode/Parklot.java renamed to codes/algorithm/src/main/java/io/github/dunwu/algorithm/Parklot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.dunwu.leetcode;
1+
package io.github.dunwu.algorithm;
22

33
import java.time.LocalDateTime;
44
import java.time.ZoneOffset;

codes/leetcode/src/main/java/io/github/dunwu/leetcode/Test2.java renamed to codes/algorithm/src/main/java/io/github/dunwu/algorithm/Test2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.dunwu.leetcode;
1+
package io.github.dunwu.algorithm;
22

33
/**
44
* @author <a href="mailto:forbreak@163.com">Zhang Peng</a>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.dunwu.leetcode.array;
1+
package io.github.dunwu.algorithm.array;
22

33
import java.util.*;
44

codes/data-structure/src/main/java/io/github/dunwu/leetcode/array/ArrayDemo.java renamed to codes/algorithm/src/main/java/io/github/dunwu/algorithm/array/ArrayDemo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.dunwu.leetcode.array;
1+
package io.github.dunwu.algorithm.array;
22

33
import java.util.Arrays;
44
import java.util.HashSet;

codes/data-structure/src/main/java/io/github/dunwu/leetcode/array/ArrayPartition.java renamed to codes/algorithm/src/main/java/io/github/dunwu/algorithm/array/ArrayPartition.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.dunwu.leetcode.array;
1+
package io.github.dunwu.algorithm.array;
22

33
// 【数组拆分 I】
44

codes/data-structure/src/main/java/io/github/dunwu/leetcode/array/DiagonalTraverse.java renamed to codes/algorithm/src/main/java/io/github/dunwu/algorithm/array/DiagonalTraverse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.dunwu.leetcode.array;
1+
package io.github.dunwu.algorithm.array;
22

33
// 【对角线遍历】
44

codes/data-structure/src/main/java/io/github/dunwu/leetcode/array/FindPivotIndex.java renamed to codes/algorithm/src/main/java/io/github/dunwu/algorithm/array/FindPivotIndex.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.dunwu.leetcode.array;
1+
package io.github.dunwu.algorithm.array;
22

33
// 【寻找数组的中心索引】
44

codes/data-structure/src/main/java/io/github/dunwu/leetcode/array/LargestNumberAtLeastTwiceOfOthers.java renamed to codes/algorithm/src/main/java/io/github/dunwu/algorithm/array/LargestNumberAtLeastTwiceOfOthers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.dunwu.leetcode.array;
1+
package io.github.dunwu.algorithm.array;
22

33
// 【至少是其他数字两倍的最大数】
44

0 commit comments

Comments
 (0)