Skip to content

Commit 1bd2e42

Browse files
committed
git rename
1 parent 13b66f7 commit 1bd2e42

16 files changed

+51
-51
lines changed

leetcode-26/src/main/java/Solution6312.java renamed to leetcode-26/src/main/java/Solution2578.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import java.util.List;
33
import java.util.PriorityQueue;
44

5-
public class Solution6312 {
5+
public class Solution2578 {
66
public int splitNum(int num) {
77
PriorityQueue<Integer> minHeap = new PriorityQueue<>();
88
while (num > 0) {
@@ -23,7 +23,7 @@ public int splitNum(int num) {
2323
}
2424
}
2525
/*
26-
6312. 最小和分割
26+
2578. 最小和分割
2727
https://leetcode.cn/problems/split-with-minimum-sum/
2828
2929
第 99 场双周赛 T1。

leetcode-26/src/main/java/Solution6311.java renamed to leetcode-26/src/main/java/Solution2579.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
public class Solution6311 {
1+
public class Solution2579 {
22
public long coloredCells(int n) {
33
long k = n * 2L - 1;
44
return (k * k + 1) / 2;
55
}
66
}
77
/*
8-
6311. 统计染色格子数
8+
2579. 统计染色格子数
99
https://leetcode.cn/problems/count-total-number-of-colored-cells/
1010
1111
第 99 场双周赛 T2。

leetcode-26/src/main/java/Solution6313.java renamed to leetcode-26/src/main/java/Solution2580.java

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

5-
public class Solution6313 {
5+
public class Solution2580 {
66
private static final int MOD = (int) (1e9 + 7);
77

88
public int countWays(int[][] ranges) {
@@ -56,7 +56,7 @@ private long quickPow(long a, long b) {
5656
}
5757
}
5858
/*
59-
6313. 统计将重叠区间合并成组的方案数
59+
2580. 统计将重叠区间合并成组的方案数
6060
https://leetcode.cn/problems/count-ways-to-group-overlapping-ranges/
6161
6262
第 99 场双周赛 T3。

leetcode-26/src/main/java/Solution6314.java renamed to leetcode-26/src/main/java/Solution2581.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import java.util.Map;
66
import java.util.Set;
77

8-
public class Solution6314 {
8+
public class Solution2581 {
99
private int k;
1010
private Map<Integer, List<Integer>> adj;
1111
private Set<Long> guessSet;
@@ -57,7 +57,7 @@ private void dfs2(int x, int fa, int cnt) {
5757
}
5858
}
5959
/*
60-
6314. 统计可能的树根数目
60+
2581. 统计可能的树根数目
6161
https://leetcode.cn/problems/count-number-of-possible-root-nodes/
6262
6363
第 99 场双周赛 T4。

leetcode-26/src/main/java/Solution6307.java renamed to leetcode-26/src/main/java/Solution2582.java

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

4-
public class Solution6307 {
4+
public class Solution2582 {
55
public int passThePillow(int n, int time) {
66
// 构造一个周期
77
List<Integer> list = new ArrayList<>();
@@ -13,7 +13,7 @@ public int passThePillow(int n, int time) {
1313
}
1414
}
1515
/*
16-
6307. 递枕头
16+
2582. 递枕头
1717
https://leetcode.cn/problems/pass-the-pillow/
1818
1919
第 335 场周赛 T1。

leetcode-26/src/main/java/Solution6308.java renamed to leetcode-26/src/main/java/Solution2583.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import java.util.List;
55
import java.util.Queue;
66

7-
public class Solution6308 {
7+
public class Solution2583 {
88
public long kthLargestLevelSum(TreeNode root, int k) {
99
List<Long> sumList = new ArrayList<>();
1010

@@ -32,7 +32,7 @@ public long kthLargestLevelSum(TreeNode root, int k) {
3232
}
3333
}
3434
/*
35-
6308. 二叉树中的第 K 大层和
35+
2583. 二叉树中的第 K 大层和
3636
https://leetcode.cn/problems/kth-largest-sum-in-a-binary-tree/
3737
3838
第 335 场周赛 T2。

leetcode-26/src/main/java/Solution6309.java renamed to leetcode-26/src/main/java/Solution2584.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import java.util.List;
44
import java.util.Map;
55

6-
public class Solution6309 {
6+
public class Solution2584 {
77
public int findValidSplit(int[] nums) {
88
int n = nums.length;
99
Map<Integer, int[]> map = new HashMap<>();
@@ -59,7 +59,7 @@ private static List<Integer> getFactorPrime(int num) {
5959
}
6060
}
6161
/*
62-
6309. 分割数组使乘积互质
62+
2584. 分割数组使乘积互质
6363
https://leetcode.cn/problems/split-the-array-to-make-coprime-products/
6464
6565
第 335 场周赛 T3。

leetcode-26/src/main/java/Solution6310.java renamed to leetcode-26/src/main/java/Solution2585.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
public class Solution6310 {
1+
public class Solution2585 {
22
private static final int MOD = (int) (1e9 + 7);
33

44
public int waysToReachTarget(int target, int[][] types) {
@@ -17,7 +17,7 @@ public int waysToReachTarget(int target, int[][] types) {
1717
}
1818
}
1919
/*
20-
6310. 获得分数的方法数
20+
2585. 获得分数的方法数
2121
https://leetcode.cn/problems/number-of-ways-to-earn-points/
2222
2323
第 335 场周赛 T4。
Lines changed: 4 additions & 4 deletions
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 Solution6312Tests {
5-
private final Solution6312 solution6312 = new Solution6312();
4+
public class Solution2578Tests {
5+
private final Solution2578 solution2578 = new Solution2578();
66

77
@Test
88
public void example1() {
99
int num = 4325;
1010
int expected = 59;
11-
Assertions.assertEquals(expected, solution6312.splitNum(num));
11+
Assertions.assertEquals(expected, solution2578.splitNum(num));
1212
}
1313

1414
@Test
1515
public void example2() {
1616
int num = 687;
1717
int expected = 75;
18-
Assertions.assertEquals(expected, solution6312.splitNum(num));
18+
Assertions.assertEquals(expected, solution2578.splitNum(num));
1919
}
2020
}
Lines changed: 4 additions & 4 deletions
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 Solution6311Tests {
5-
private final Solution6311 solution6311 = new Solution6311();
4+
public class Solution2579Tests {
5+
private final Solution2579 solution2579 = new Solution2579();
66

77
@Test
88
public void example1() {
99
int n = 1;
1010
long expected = 1;
11-
Assertions.assertEquals(expected, solution6311.coloredCells(n));
11+
Assertions.assertEquals(expected, solution2579.coloredCells(n));
1212
}
1313

1414
@Test
1515
public void example2() {
1616
int n = 2;
1717
long expected = 5;
18-
Assertions.assertEquals(expected, solution6311.coloredCells(n));
18+
Assertions.assertEquals(expected, solution2579.coloredCells(n));
1919
}
2020
}

0 commit comments

Comments
 (0)