File tree 3 files changed +6
-6
lines changed
main/java/com/stevesun/solutions 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -379,7 +379,7 @@ Your ideas/fixes/algorithms are more than welcome!
379
379
|70|[ Climbing Stairs] ( https://leetcode.com/problems/climbing-stairs/ ) |[ Solution] ( ../master/src/main/java/com/stevesun/solutions/ClimbingStairs.java ) |O(n)|O(n)|Easy| DP
380
380
| 69| [ Sqrt(x)] ( https://leetcode.com/problems/sqrtx/ ) | [ Solution] ( ../master/src/main/java/com/stevesun/solutions/Sqrt.java ) | O(logn)| O(1)| Easy|
381
381
| 68| [ Text Justification] ( https://leetcode.com/problems/text-justification/ ) | [ Solution] ( ../master/src/main/java/com/stevesun/solutions/TextJustification.java ) | O(n)| O(1)| Hard|
382
- | 67| [ Add Binary] ( https://leetcode.com/problems/add-binary/ ) | [ Solution] ( ../master/src/main/java/com/stevesun/solutions/AddBinary .java ) | O(n)| O(1)| Easy|
382
+ | 67| [ Add Binary] ( https://leetcode.com/problems/add-binary/ ) | [ Solution] ( ../master/src/main/java/com/stevesun/solutions/_67 .java ) | O(n)| O(1)| Easy|
383
383
| 66| [ Plus One] ( https://leetcode.com/problems/plus-one/ ) | [ Solution] ( ../master/src/main/java/com/stevesun/solutions/PlusOne.java ) | O(n)| O(1)| Easy|
384
384
| 65| [ Valid Number] ( https://leetcode.com/problems/valid-number/ ) | [ Solution] ( ../master/src/main/java/com/stevesun/solutions/_65.java ) | O(n)| O(1)| Hard|
385
385
|64|[ Minimum Path Sum] ( https://leetcode.com/problems/minimum-path-sum/ ) |[ Solution] ( ../master/src/main/java/com/stevesun/solutions/MinimumPathSum.java ) |O(m* n)|O(m* n)|Medium| DP
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ Given two binary strings, return their sum (also a binary string).
6
6
a = "11"
7
7
b = "1"
8
8
Return "100".*/
9
- public class AddBinary {
9
+ public class _67 {
10
10
//then I turned to Discuss, this post is concise: https://discuss.leetcode.com/topic/13698/short-ac-solution-in-java-with-explanation
11
11
//Tricks and things learned that could be learned:
12
12
//1. use StringBuilder.reverse() function! Nice!
Original file line number Diff line number Diff line change 1
1
package com .stevesun ;
2
2
3
- import com .stevesun .solutions .AddBinary ;
3
+ import com .stevesun .solutions ._67 ;
4
4
5
5
import org .junit .Before ;
6
6
import org .junit .BeforeClass ;
10
10
/**
11
11
* Created by stevesun on 1/8/17.
12
12
*/
13
- public class AddBinaryTest {
14
- private static AddBinary test ;
13
+ public class _67Test {
14
+ private static _67 test ;
15
15
private static String expected ;
16
16
private static String actual ;
17
17
private static String a ;
18
18
private static String b ;
19
19
20
20
@ BeforeClass
21
21
public static void setup (){
22
- test = new AddBinary ();
22
+ test = new _67 ();
23
23
expected = new String ();
24
24
actual = new String ();
25
25
a = new String ();
You can’t perform that action at this time.
0 commit comments