Skip to content

Commit c959639

Browse files
committed
git rename
1 parent c72894d commit c959639

File tree

8 files changed

+24
-24
lines changed

8 files changed

+24
-24
lines changed

leetcode-26/src/main/java/Solution6315.java renamed to leetcode-26/src/main/java/Solution2586.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
public class Solution6315 {
1+
public class Solution2586 {
22
public int vowelStrings(String[] words, int left, int right) {
33
int res = 0;
44
for (int i = left; i <= right; i++) {
@@ -17,7 +17,7 @@ private boolean isVowel(String s) {
1717
}
1818
}
1919
/*
20-
6315. 统计范围内的元音字符串数
20+
2586. 统计范围内的元音字符串数
2121
https://leetcode.cn/problems/count-the-number-of-vowel-strings-in-range/
2222
2323
第 336 场周赛 T1。

leetcode-26/src/main/java/Solution6316.java renamed to leetcode-26/src/main/java/Solution2587.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import java.util.Arrays;
22

3-
public class Solution6316 {
3+
public class Solution2587 {
44
public int maxScore(int[] nums) {
55
int n = nums.length;
66
Arrays.sort(nums);
@@ -17,7 +17,7 @@ public int maxScore(int[] nums) {
1717
}
1818
}
1919
/*
20-
6316. 重排数组以得到最大前缀分数
20+
2587. 重排数组以得到最大前缀分数
2121
https://leetcode.cn/problems/rearrange-array-to-maximize-prefix-score/
2222
2323
第 336 场周赛 T2。

leetcode-26/src/main/java/Solution6317.java renamed to leetcode-26/src/main/java/Solution2588.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
public class Solution6317 {
1+
public class Solution2588 {
22
public long beautifulSubarrays(int[] nums) {
33
long res = 0L;
44
int sumMod2Mask = 0;
@@ -13,7 +13,7 @@ public long beautifulSubarrays(int[] nums) {
1313
}
1414
}
1515
/*
16-
6317. 统计美丽子数组数目
16+
2588. 统计美丽子数组数目
1717
https://leetcode.cn/problems/count-the-number-of-beautiful-subarrays/
1818
1919
第 336 场周赛 T3。

leetcode-26/src/main/java/Solution6318.java renamed to leetcode-26/src/main/java/Solution2589.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import java.util.Arrays;
22
import java.util.Comparator;
33

4-
public class Solution6318 {
4+
public class Solution2589 {
55
public int findMinimumTime(int[][] tasks) {
66
Arrays.sort(tasks, Comparator.comparingInt(o -> o[1]));
77
boolean[] isRun = new boolean[2001];
@@ -31,7 +31,7 @@ public int findMinimumTime(int[][] tasks) {
3131
}
3232
}
3333
/*
34-
6318. 完成所有任务的最少时间
34+
2589. 完成所有任务的最少时间
3535
https://leetcode.cn/problems/minimum-time-to-complete-all-tasks/
3636
3737
第 336 场周赛 T4。
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import org.junit.jupiter.api.Assertions;
22
import org.junit.jupiter.api.Test;
33

4-
public class Solution6315Tests {
5-
private final Solution6315 solution6315 = new Solution6315();
4+
public class Solution2586Tests {
5+
private final Solution2586 solution2586 = new Solution2586();
66

77
@Test
88
public void example1() {
99
String[] words = {"are", "amy", "u"};
1010
int left = 0;
1111
int right = 2;
1212
int expected = 2;
13-
Assertions.assertEquals(expected, solution6315.vowelStrings(words, left, right));
13+
Assertions.assertEquals(expected, solution2586.vowelStrings(words, left, right));
1414
}
1515

1616
@Test
@@ -19,6 +19,6 @@ public void example2() {
1919
int left = 1;
2020
int right = 4;
2121
int expected = 3;
22-
Assertions.assertEquals(expected, solution6315.vowelStrings(words, left, right));
22+
Assertions.assertEquals(expected, solution2586.vowelStrings(words, left, right));
2323
}
2424
}
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
import org.junit.jupiter.api.Assertions;
22
import org.junit.jupiter.api.Test;
33

4-
public class Solution6316Tests {
5-
private final Solution6316 solution6316 = new Solution6316();
4+
public class Solution2587Tests {
5+
private final Solution2587 solution2587 = new Solution2587();
66

77
@Test
88
public void example1() {
99
int[] nums = {2, -1, 0, 1, -3, 3, -3};
1010
int expected = 6;
11-
Assertions.assertEquals(expected, solution6316.maxScore(nums));
11+
Assertions.assertEquals(expected, solution2587.maxScore(nums));
1212
}
1313

1414
@Test
1515
public void example2() {
1616
int[] nums = {-2, -3, 0};
1717
int expected = 0;
18-
Assertions.assertEquals(expected, solution6316.maxScore(nums));
18+
Assertions.assertEquals(expected, solution2587.maxScore(nums));
1919
}
2020
}
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
import org.junit.jupiter.api.Assertions;
22
import org.junit.jupiter.api.Test;
33

4-
public class Solution6317Tests {
5-
private final Solution6317 solution6317 = new Solution6317();
4+
public class Solution2588Tests {
5+
private final Solution2588 solution2588 = new Solution2588();
66

77
@Test
88
public void example1() {
99
int[] nums = {4, 3, 1, 2, 4};
1010
long expected = 2;
11-
Assertions.assertEquals(expected, solution6317.beautifulSubarrays(nums));
11+
Assertions.assertEquals(expected, solution2588.beautifulSubarrays(nums));
1212
}
1313

1414
@Test
1515
public void example2() {
1616
int[] nums = {1, 10, 4};
1717
long expected = 0;
18-
Assertions.assertEquals(expected, solution6317.beautifulSubarrays(nums));
18+
Assertions.assertEquals(expected, solution2588.beautifulSubarrays(nums));
1919
}
2020
}
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
import org.junit.jupiter.api.Assertions;
22
import org.junit.jupiter.api.Test;
33

4-
public class Solution6318Tests {
5-
private final Solution6318 solution6318 = new Solution6318();
4+
public class Solution2589Tests {
5+
private final Solution2589 solution2589 = new Solution2589();
66

77
@Test
88
public void example1() {
99
int[][] tasks = UtUtils.stringToInts2("[[2,3,1],[4,5,1],[1,5,2]]");
1010
int expected = 2;
11-
Assertions.assertEquals(expected, solution6318.findMinimumTime(tasks));
11+
Assertions.assertEquals(expected, solution2589.findMinimumTime(tasks));
1212
}
1313

1414
@Test
1515
public void example2() {
1616
int[][] tasks = UtUtils.stringToInts2("[[1,3,2],[2,5,3],[5,6,2]]");
1717
int expected = 4;
18-
Assertions.assertEquals(expected, solution6318.findMinimumTime(tasks));
18+
Assertions.assertEquals(expected, solution2589.findMinimumTime(tasks));
1919
}
2020
}

0 commit comments

Comments
 (0)