Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a4e76e8

Browse files
committedDec 16, 2021
Changed package names.
1 parent 33508b3 commit a4e76e8

File tree

25 files changed

+42
-27
lines changed

25 files changed

+42
-27
lines changed
 

‎.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
target/
2+
.idea/
3+
*.iml
4+
.project
5+
.classpath
6+
bin/
7+
.settings
8+
build/
9+
.gradle/

‎pom.xml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3131
</properties>
3232
<ciManagement>
33-
<system>Travis CI</system>
34-
<url>https://travis-ci.org/javadev/LeetCode-in-Kotlin</url>
33+
<system>GitHub Actions</system>
34+
<url>https://github.com/javadev/LeetCode-in-Kotlin/actions</url>
3535
</ciManagement>
3636
<issueManagement>
3737
<system>GitHub Issues</system>
@@ -85,7 +85,7 @@
8585
<plugin>
8686
<groupId>org.apache.maven.plugins</groupId>
8787
<artifactId>maven-source-plugin</artifactId>
88-
<version>2.4</version>
88+
<version>3.2.0</version>
8989
<executions>
9090
<execution>
9191
<id>attach-sources</id>
@@ -134,7 +134,13 @@
134134
<dependency>
135135
<groupId>junit</groupId>
136136
<artifactId>junit</artifactId>
137-
<version>4.13.1</version>
137+
<version>[4.13.2,)</version>
138+
<scope>test</scope>
139+
</dependency>
140+
<dependency>
141+
<groupId>org.hamcrest</groupId>
142+
<artifactId>hamcrest-core</artifactId>
143+
<version>[2.2,)</version>
138144
<scope>test</scope>
139145
</dependency>
140146
</dependencies>

‎src/main/kotlin/s0001.two.sum/Solution.kt renamed to ‎src/main/kotlin/s0001_two_sum/Solution.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package s0001.two.sum
1+
package s0001_two_sum
22

33
class Solution {
44
fun twoSum(nums: IntArray, target: Int): IntArray {

‎src/main/kotlin/s0002.add.two.numbers/ListNode.kt renamed to ‎src/main/kotlin/s0002_add_two_numbers/ListNode.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package s0002.add.two.numbers
1+
package s0002_add_two_numbers
22

33
class ListNode(var `val`: Int) {
44
var next: ListNode? = null

‎src/main/kotlin/s0002.add.two.numbers/Solution.kt renamed to ‎src/main/kotlin/s0002_add_two_numbers/Solution.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package s0002.add.two.numbers
1+
package s0002_add_two_numbers
22

33
/**
44
* Example:

‎src/main/kotlin/s0003.longest.substring.without.repeating.characters/Solution.kt renamed to ‎src/main/kotlin/s0003_longest_substring_without_repeating_characters/Solution.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package s0003.longest.substring.without.repeating.characters
1+
package s0003_longest_substring_without_repeating_characters
22

33
class Solution {
44
fun lengthOfLongestSubstring(s: String): Int {

‎src/main/kotlin/s0004.median.of.two.sorted.arrays/Solution.kt renamed to ‎src/main/kotlin/s0004_median_of_two_sorted_arrays/Solution.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package s0004.median.of.two.sorted.arrays
1+
package s0004_median_of_two_sorted_arrays
22

33
class Solution {
44
fun findMedianSortedArrays(nums1: IntArray, nums2: IntArray): Double {

‎src/main/kotlin/s0005.longest.palindromic.substring/Solution.kt renamed to ‎src/main/kotlin/s0005_longest_palindromic_substring/Solution.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package s0005.longest.palindromic.substring
1+
package s0005_longest_palindromic_substring
22

33
class Solution {
44
fun longestPalindrome(s: String): String {

‎src/main/kotlin/s0006.zigzag.conversion/Solution.kt renamed to ‎src/main/kotlin/s0006_zigzag_conversion/Solution.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package s0006.zigzag.conversion
1+
package s0006_zigzag_conversion
22

33
class Solution {
44
fun convert(s: String, numRows: Int): String {

‎src/main/kotlin/s0007.reverse.integer/Solution.kt renamed to ‎src/main/kotlin/s0007_reverse_integer/Solution.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package s0007.reverse.integer
1+
package s0007_reverse_integer
22

33
class Solution {
44
fun reverse(x: Int): Int {

‎src/main/kotlin/s0008.string.to.integer.atoi/Solution.kt renamed to ‎src/main/kotlin/s0008_string_to_integer_atoi/Solution.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package s0008.string.to.integer.atoi
1+
package s0008_string_to_integer_atoi
22

33
class Solution {
44
fun myAtoi(str: String): Int {

‎src/main/kotlin/s0009.palindrome.number/Solution.kt renamed to ‎src/main/kotlin/s0009_palindrome_number/Solution.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package s0009.palindrome.number
1+
package s0009_palindrome_number
22

33
class Solution {
44
fun isPalindrome(x: Int): Boolean {

‎src/main/kotlin/s0010.regular.expression.matching/Solution.kt renamed to ‎src/main/kotlin/s0010_regular_expression_matching/Solution.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package s0010.regular.expression.matching
1+
package s0010_regular_expression_matching
22

33
class Solution {
44
fun isMatch(text:String, pattern:String): Boolean {

‎src/main/kotlin/s0011.container.with.most.water/Solution.kt renamed to ‎src/main/kotlin/s0011_container_with_most_water/Solution.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package s0011.container.with.most.water
1+
package s0011_container_with_most_water
22

33
class Solution {
44
fun maxArea(height:IntArray):Int {

‎src/test/kotlin/s0001.two.sum/SolutionTest.kt renamed to ‎src/test/kotlin/s0001_two_sum/SolutionTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package s0001.two.sum
1+
package s0001_two_sum
22

33
import org.hamcrest.CoreMatchers.equalTo
44
import org.junit.Assert.assertThat

‎src/test/kotlin/s0002.add.two.numbers/SolutionTest.kt renamed to ‎src/test/kotlin/s0002_add_two_numbers/SolutionTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package s0002.add.two.numbers
1+
package s0002_add_two_numbers
22

33
import org.hamcrest.CoreMatchers.equalTo
44
import org.junit.Assert.assertThat

‎src/test/kotlin/s0003.longest.substring.without.repeating.characters/SolutionTest.kt renamed to ‎src/test/kotlin/s0003_longest_substring_without_repeating_characters/SolutionTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package s0003.longest.substring.without.repeating.characters
1+
package s0003_longest_substring_without_repeating_characters
22

33
import org.hamcrest.CoreMatchers.equalTo
44
import org.junit.Assert.assertThat

‎src/test/kotlin/s0004.median.of.two.sorted.arrays/SolutionTest.kt renamed to ‎src/test/kotlin/s0004_median_of_two_sorted_arrays/SolutionTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package s0004.median.of.two.sorted.arrays
1+
package s0004_median_of_two_sorted_arrays
22

33
import org.hamcrest.CoreMatchers.equalTo
44
import org.junit.Assert.assertThat

‎src/test/kotlin/s0005.longest.palindromic.substring/SolutionTest.kt renamed to ‎src/test/kotlin/s0005_longest_palindromic_substring/SolutionTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package s0005.longest.palindromic.substring
1+
package s0005_longest_palindromic_substring
22

33
import org.hamcrest.CoreMatchers.equalTo
44
import org.junit.Assert.assertThat

‎src/test/kotlin/s0006.zigzag.conversion/SolutionTest.kt renamed to ‎src/test/kotlin/s0006_zigzag_conversion/SolutionTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package s0006.zigzag.conversion
1+
package s0006_zigzag_conversion
22

33
import org.hamcrest.CoreMatchers.equalTo
44
import org.junit.Assert.assertThat

‎src/test/kotlin/s0007.reverse.integer/SolutionTest.kt renamed to ‎src/test/kotlin/s0007_reverse_integer/SolutionTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package s0007.reverse.integer
1+
package s0007_reverse_integer
22

33
import org.hamcrest.CoreMatchers.equalTo
44
import org.junit.Assert.assertThat

‎src/test/kotlin/s0008.string.to.integer.atoi/SolutionTest.kt renamed to ‎src/test/kotlin/s0008_string_to_integer_atoi/SolutionTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package s0008.string.to.integer.atoi
1+
package s0008_string_to_integer_atoi
22

33
import org.hamcrest.CoreMatchers.equalTo
44
import org.junit.Assert.assertThat

‎src/test/kotlin/s0009.palindrome.number/SolutionTest.kt renamed to ‎src/test/kotlin/s0009_palindrome_number/SolutionTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package s0009.palindrome.number
1+
package s0009_palindrome_number
22

33
import org.hamcrest.CoreMatchers.equalTo
44
import org.junit.Assert.assertThat

‎src/test/kotlin/s0010.regular.expression.matching/SolutionTest.kt renamed to ‎src/test/kotlin/s0010_regular_expression_matching/SolutionTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package s0010.regular.expression.matching
1+
package s0010_regular_expression_matching
22

33
import org.hamcrest.CoreMatchers.equalTo
44
import org.junit.Assert.assertThat

‎src/test/kotlin/s0011.container.with.most.water/SolutionTest.kt renamed to ‎src/test/kotlin/s0011_container_with_most_water/SolutionTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package s0011.container.with.most.water
1+
package s0011_container_with_most_water
22

33
import org.hamcrest.CoreMatchers.equalTo
44
import org.junit.Assert.assertThat

0 commit comments

Comments
 (0)
Please sign in to comment.