Skip to content

Commit 06857d9

Browse files
authored
Improved tasks 61-68
1 parent 1dbb9d2 commit 06857d9

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

LeetCodeNet.Tests/G0001_0100/S0061_rotate_list/SolutionTest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,30 +24,30 @@ private int[] ToArray(ListNode head) {
2424
}
2525

2626
[Fact]
27-
public void RotateRight_Example1() {
27+
public void RotateRight() {
2828
var solution = new Solution();
2929
var head = BuildList(new int[] {1,2,3,4,5});
3030
var result = solution.RotateRight(head, 2);
3131
Assert.Equal(new int[] {4,5,1,2,3}, ToArray(result));
3232
}
3333

3434
[Fact]
35-
public void RotateRight_Example2() {
35+
public void RotateRight2() {
3636
var solution = new Solution();
3737
var head = BuildList(new int[] {0,1,2});
3838
var result = solution.RotateRight(head, 4);
3939
Assert.Equal(new int[] {2,0,1}, ToArray(result));
4040
}
4141

4242
[Fact]
43-
public void RotateRight_Empty() {
43+
public void RotateRight3() {
4444
var solution = new Solution();
4545
var result = solution.RotateRight(null, 1);
4646
Assert.Null(result);
4747
}
4848

4949
[Fact]
50-
public void RotateRight_SingleNode() {
50+
public void RotateRight4() {
5151
var solution = new Solution();
5252
var head = BuildList(new int[] {1});
5353
var result = solution.RotateRight(head, 99);

LeetCodeNet.Tests/G0001_0100/S0063_unique_paths_ii/SolutionTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace LeetCodeNet.G0001_0100.S0063_unique_paths_ii {
44

55
public class SolutionTest {
66
[Fact]
7-
public void UniquePathsWithObstacles_Example1() {
7+
public void UniquePathsWithObstacles() {
88
var solution = new Solution();
99
int[][] grid = new int[][] {
1010
new int[] {0,0,0},
@@ -15,7 +15,7 @@ public void UniquePathsWithObstacles_Example1() {
1515
}
1616

1717
[Fact]
18-
public void UniquePathsWithObstacles_Example2() {
18+
public void UniquePathsWithObstacles2() {
1919
var solution = new Solution();
2020
int[][] grid = new int[][] {
2121
new int[] {0,1},
@@ -25,7 +25,7 @@ public void UniquePathsWithObstacles_Example2() {
2525
}
2626

2727
[Fact]
28-
public void UniquePathsWithObstacles_AllBlocked() {
28+
public void UniquePathsWithObstacles3() {
2929
var solution = new Solution();
3030
int[][] grid = new int[][] {
3131
new int[] {1,0},

LeetCodeNet.Tests/G0001_0100/S0066_plus_one/SolutionTest.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,31 @@ namespace LeetCodeNet.G0001_0100.S0066_plus_one {
44

55
public class SolutionTest {
66
[Fact]
7-
public void PlusOne_Example1() {
7+
public void PlusOne() {
88
var solution = new Solution();
99
Assert.Equal(new int[] {1,2,4}, solution.PlusOne(new int[] {1,2,3}));
1010
}
1111

1212
[Fact]
13-
public void PlusOne_Example2() {
13+
public void PlusOne2() {
1414
var solution = new Solution();
1515
Assert.Equal(new int[] {4,3,2,2}, solution.PlusOne(new int[] {4,3,2,1}));
1616
}
1717

1818
[Fact]
19-
public void PlusOne_Example3() {
19+
public void PlusOne3() {
2020
var solution = new Solution();
2121
Assert.Equal(new int[] {1}, solution.PlusOne(new int[] {0}));
2222
}
2323

2424
[Fact]
25-
public void PlusOne_Example4() {
25+
public void PlusOne4() {
2626
var solution = new Solution();
2727
Assert.Equal(new int[] {1,0}, solution.PlusOne(new int[] {9}));
2828
}
2929

3030
[Fact]
31-
public void PlusOne_AllNines() {
31+
public void PlusOne5() {
3232
var solution = new Solution();
3333
Assert.Equal(new int[] {1,0,0,0}, solution.PlusOne(new int[] {9,9,9}));
3434
}

LeetCodeNet.Tests/G0001_0100/S0067_add_binary/SolutionTest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,25 @@ namespace LeetCodeNet.G0001_0100.S0067_add_binary {
44

55
public class SolutionTest {
66
[Fact]
7-
public void AddBinary_Example1() {
7+
public void AddBinary() {
88
var solution = new Solution();
99
Assert.Equal("100", solution.AddBinary("11", "1"));
1010
}
1111

1212
[Fact]
13-
public void AddBinary_Example2() {
13+
public void AddBinary2() {
1414
var solution = new Solution();
1515
Assert.Equal("10101", solution.AddBinary("1010", "1011"));
1616
}
1717

1818
[Fact]
19-
public void AddBinary_Zero() {
19+
public void AddBinary3() {
2020
var solution = new Solution();
2121
Assert.Equal("0", solution.AddBinary("0", "0"));
2222
}
2323

2424
[Fact]
25-
public void AddBinary_DifferentLengths() {
25+
public void AddBinary4() {
2626
var solution = new Solution();
2727
Assert.Equal("1000", solution.AddBinary("1", "111"));
2828
}

LeetCodeNet.Tests/G0001_0100/S0068_text_justification/SolutionTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace LeetCodeNet.G0001_0100.S0068_text_justification {
55

66
public class SolutionTest {
77
[Fact]
8-
public void FullJustify_Example1() {
8+
public void FullJustify() {
99
var solution = new Solution();
1010
var words = new string[] {"This", "is", "an", "example", "of", "text", "justification."};
1111
int maxWidth = 16;
@@ -18,7 +18,7 @@ public void FullJustify_Example1() {
1818
}
1919

2020
[Fact]
21-
public void FullJustify_Example2() {
21+
public void FullJustify2() {
2222
var solution = new Solution();
2323
var words = new string[] {"What","must","be","acknowledgment","shall","be"};
2424
int maxWidth = 16;
@@ -31,7 +31,7 @@ public void FullJustify_Example2() {
3131
}
3232

3333
[Fact]
34-
public void FullJustify_Example3() {
34+
public void FullJustify3() {
3535
var solution = new Solution();
3636
var words = new string[] {"Science","is","what","we","understand","well","enough","to","explain","to","a","computer.","Art","is","everything","else","we","do"};
3737
int maxWidth = 20;

0 commit comments

Comments
 (0)