Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitddd63f5

Browse files
rename
1 parentd8e43bd commitddd63f5

19 files changed

+38
-150
lines changed

‎src/main/java/com/fishercoder/solutions/MissingRanges.javarenamed to‎src/main/java/com/fishercoder/solutions/_163.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
99
For example, given [0, 1, 3, 50, 75], lower = 0 and upper = 99, return ["2", "4->49", "51->74", "76->99"].
1010
*/
11-
publicclassMissingRanges {
11+
publicclass_163 {
1212

1313
publicList<String>findMissingRanges(int[]nums,intlower,intupper) {
1414
List<String>res =newArrayList<String>();

‎src/main/java/com/fishercoder/solutions/NumberofSegmentsinaString.javarenamed to‎src/main/java/com/fishercoder/solutions/_434.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
1010
Input: "Hello, my name is John"
1111
Output: 5*/
12-
publicclassNumberofSegmentsinaString {
12+
publicclass_434 {
1313

1414
publicintcountSegments(Strings) {
1515
if (s ==null ||s.isEmpty())return0;

‎src/main/java/com/fishercoder/solutions/NumberComplement.javarenamed to‎src/main/java/com/fishercoder/solutions/_476.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Output: 0
1616
Explanation: The binary representation of 1 is 1 (no leading zero bits), and its complement is 0. So you need to output 0.
1717
*/
18-
publicclassNumberComplement {
18+
publicclass_476 {
1919

2020
publicintfindComplement_oneLiner(intnum) {
2121
return ~num & ((Integer.highestOneBit(num) <<1) -1);

‎src/main/java/com/fishercoder/solutions/NextGreaterElementI.javarenamed to‎src/main/java/com/fishercoder/solutions/_496.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
All elements in nums1 and nums2 are unique.
2727
The length of both nums1 and nums2 would not exceed 1000.
2828
*/
29-
publicclassNextGreaterElementI {
29+
publicclass_496 {
3030

3131
publicint[]nextGreaterElement_clever_way(int[]findNums,int[]nums) {
3232
Stack<Integer>stack =newStack();

‎src/main/java/com/fishercoder/solutions/NextGreaterElementII.javarenamed to‎src/main/java/com/fishercoder/solutions/_503.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
The second 1's next greater number needs to search circularly, which is also 2.
1717
Note: The length of given array won't exceed 10000.
1818
*/
19-
publicclassNextGreaterElementII {
19+
publicclass_503 {
2020

2121
//Credit: https://discuss.leetcode.com/topic/77881/typical-ways-to-solve-circular-array-problems-java-solution
2222
//Note: we store INDEX into the stack, reversely, the larger index put at the bottom of the stack, the smaller index at the top

‎src/main/java/com/fishercoder/solutions/MinimumTimeDifference.javarenamed to‎src/main/java/com/fishercoder/solutions/_539.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
The number of time points in the given list is at least 2 and won't exceed 20000.
1414
The input time is legal and ranges from 00:00 to 23:59.
1515
*/
16-
publicclassMinimumTimeDifference {
16+
publicclass_539 {
1717

1818
publicintfindMinDifference(List<String>timePoints) {
1919
// there are in total 24*60 = 1440 possible time points

‎src/main/java/com/fishercoder/solutions/NextGreaterElementIII.javarenamed to‎src/main/java/com/fishercoder/solutions/_556.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Input: 21
1313
* Output: -1
1414
*/
15-
publicclassNextGreaterElementIII {
15+
publicclass_556 {
1616
//credit: https://discuss.leetcode.com/topic/85759/this-problem-is-the-same-to-next-permutation-algorithm-only and https://discuss.leetcode.com/topic/85755/java-solution-like-next-permutation-problem-o-n
1717

1818
publicintnextGreaterElement(intn) {

‎src/test/java/com/fishercoder/MaxConsecutiveOnesIITest.java

Lines changed: 0 additions & 54 deletions
This file was deleted.

‎src/test/java/com/fishercoder/TheMazeIIITest.java

Lines changed: 0 additions & 58 deletions
This file was deleted.

‎src/test/java/com/fishercoder/MissingRangesTest.javarenamed to‎src/test/java/com/fishercoder/_163Test.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
packagecom.fishercoder;
22

3-
importcom.fishercoder.solutions.MissingRanges;
3+
importcom.fishercoder.solutions._163;
44
importorg.junit.Before;
55
importorg.junit.BeforeClass;
66
importorg.junit.Test;
@@ -13,9 +13,9 @@
1313
/**
1414
* Created by fishercoder on 12/31/16.
1515
*/
16-
publicclassMissingRangesTest {
16+
publicclass_163Test {
1717

18-
privatestaticMissingRangestest;
18+
privatestatic_163test;
1919
privatestaticList<String>expected;
2020
privatestaticList<String>actual;
2121
privatestaticintlower;
@@ -24,7 +24,7 @@ public class MissingRangesTest {
2424

2525
@BeforeClass
2626
publicstaticvoidsetup(){
27-
test =newMissingRanges();
27+
test =new_163();
2828
expected =newArrayList();
2929
actual =newArrayList();
3030
}

‎src/test/java/com/fishercoder/NumberofSegmentsinaStringTest.javarenamed to‎src/test/java/com/fishercoder/_434Test.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
packagecom.fishercoder;
22

3-
importcom.fishercoder.solutions.NumberofSegmentsinaString;
3+
importcom.fishercoder.solutions._434;
44
importorg.junit.Before;
55
importorg.junit.BeforeClass;
66
importorg.junit.Test;
77

88
importstaticjunit.framework.Assert.assertEquals;
99

10-
publicclassNumberofSegmentsinaStringTest {
11-
privatestaticNumberofSegmentsinaStringtest;
10+
publicclass_434Test {
11+
privatestatic_434test;
1212
privatestaticintexpected;
1313
privatestaticintactual;
1414
privatestaticStrings;
1515

1616
@BeforeClass
1717
publicstaticvoidsetup(){
18-
test =newNumberofSegmentsinaString();
18+
test =new_434();
1919
}
2020

2121
@Before

‎src/test/java/com/fishercoder/NumberComplementTest.javarenamed to‎src/test/java/com/fishercoder/_476Test.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
packagecom.fishercoder;
22

3-
importcom.fishercoder.solutions.NumberComplement;
3+
importcom.fishercoder.solutions._476;
44
importorg.junit.Before;
55
importorg.junit.BeforeClass;
66
importorg.junit.Test;
@@ -10,15 +10,15 @@
1010
/**
1111
* Created by fishercoder on 1/14/17.
1212
*/
13-
publicclassNumberComplementTest {
14-
privatestaticNumberComplementtest;
13+
publicclass_476Test {
14+
privatestatic_476test;
1515
privatestaticintexpected;
1616
privatestaticintactual;
1717
privatestaticintinput;
1818

1919
@BeforeClass
2020
publicstaticvoidsetup() {
21-
test =newNumberComplement();
21+
test =new_476();
2222
}
2323

2424
@Before

‎src/test/java/com/fishercoder/NextGreaterElementITest.javarenamed to‎src/test/java/com/fishercoder/_496Test.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
packagecom.fishercoder;
22

3-
importcom.fishercoder.solutions.NextGreaterElementI;
3+
importcom.fishercoder.solutions._496;
44
importorg.junit.Before;
55
importorg.junit.BeforeClass;
66
importorg.junit.Test;
77

88
importstaticorg.junit.Assert.assertArrayEquals;
99

10-
publicclassNextGreaterElementITest {
11-
privatestaticNextGreaterElementItest;
10+
publicclass_496Test {
11+
privatestatic_496test;
1212
privatestaticint[]findNums;
1313
privatestaticint[]nums;
1414
privatestaticint[]expected;
1515
privatestaticint[]actual;
1616

1717
@BeforeClass
1818
publicstaticvoidsetup(){
19-
test =newNextGreaterElementI();
19+
test =new_496();
2020
}
2121

2222
@Before

‎src/test/java/com/fishercoder/NextGreaterElementIITest.javarenamed to‎src/test/java/com/fishercoder/_503Test.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
packagecom.fishercoder;
22

3-
importcom.fishercoder.solutions.NextGreaterElementII;
3+
importcom.fishercoder.solutions._503;
44
importorg.junit.Before;
55
importorg.junit.BeforeClass;
66
importorg.junit.Test;
77

88
importstaticorg.junit.Assert.assertArrayEquals;
99

10-
publicclassNextGreaterElementIITest {
11-
privatestaticNextGreaterElementIItest;
10+
publicclass_503Test {
11+
privatestatic_503test;
1212
privatestaticint[]nums;
1313
privatestaticint[]expected;
1414
privatestaticint[]actual;
1515

1616
@BeforeClass
1717
publicstaticvoidsetup(){
18-
test =newNextGreaterElementII();
18+
test =new_503();
1919
}
2020

2121
@Before

‎src/test/java/com/fishercoder/LongestUncommonSubsequenceIITest.javarenamed to‎src/test/java/com/fishercoder/_522Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* Created by fishercoder on 12/31/16.
1111
*/
12-
publicclassLongestUncommonSubsequenceIITest {
12+
publicclass_522Test {
1313

1414
privatestatic_522test;
1515
privatestaticintexpected;

‎src/test/java/com/fishercoder/MinimumTimeDifferenceTest.javarenamed to‎src/test/java/com/fishercoder/_539Test.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
packagecom.fishercoder;
22

3-
importcom.fishercoder.solutions.MinimumTimeDifference;
3+
importcom.fishercoder.solutions._539;
44
importorg.junit.Before;
55
importorg.junit.BeforeClass;
66
importorg.junit.Test;
@@ -11,15 +11,15 @@
1111

1212
importstaticjunit.framework.Assert.assertEquals;
1313

14-
publicclassMinimumTimeDifferenceTest {
15-
privatestaticMinimumTimeDifferencetest;
14+
publicclass_539Test {
15+
privatestatic_539test;
1616
privatestaticintexpected;
1717
privatestaticintactual;
1818
privatestaticList<String>timePoints;
1919

2020
@BeforeClass
2121
publicstaticvoidsetup(){
22-
test =newMinimumTimeDifference();
22+
test =new_539();
2323
}
2424

2525
@Before

‎src/test/java/com/fishercoder/SplitArraywithEqualSumTest.javarenamed to‎src/test/java/com/fishercoder/_548Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
importstaticjunit.framework.Assert.assertEquals;
99

10-
publicclassSplitArraywithEqualSumTest {
10+
publicclass_548Test {
1111
privatestatic_548test;
1212
privatestaticbooleanexpected;
1313
privatestaticbooleanactual;

‎src/test/java/com/fishercoder/NextGreaterElementIIITest.javarenamed to‎src/test/java/com/fishercoder/_556Test.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
packagecom.fishercoder;
22

3-
importcom.fishercoder.solutions.NextGreaterElementIII;
3+
importcom.fishercoder.solutions._556;
44
importorg.junit.Before;
55
importorg.junit.BeforeClass;
66
importorg.junit.Test;
77

88
importstaticorg.junit.Assert.assertEquals;
99
importstaticorg.junit.Assert.assertTrue;
1010

11-
publicclassNextGreaterElementIIITest {
12-
privatestaticNextGreaterElementIIItest;
11+
publicclass_556Test {
12+
privatestatic_556test;
1313
privatestaticintn;
1414
privatestaticintexpected;
1515
privatestaticintactual;
1616

1717
@BeforeClass
1818
publicstaticvoidsetup(){
19-
test =newNextGreaterElementIII();
19+
test =new_556();
2020
}
2121

2222
@Before

‎src/test/java/com/fishercoder/SqrtxTest.javarenamed to‎src/test/java/com/fishercoder/_69Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/**
1111
* Created by fishercoder on 1/25/17.
1212
*/
13-
publicclassSqrtxTest {
13+
publicclass_69Test {
1414
privatestatic_69test;
1515
privatestaticintexpected;
1616
privatestaticintactual;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp