Skip to content

Commit ab47ac5

Browse files
edit 536
1 parent 908f582 commit ab47ac5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Your ideas/fixes/algorithms are more than welcome!
8888
|539|[Minimum Time Difference](https://leetcode.com/problems/minimum-time-difference/)|[Solution](../master/src/main/java/com/fishercoder/solutions/MinimumTimeDifference.java) | O(n) |O(1) | Medium | String
8989
|538|[Convert BST to Greater Tree](https://leetcode.com/problems/convert-bst-to-greater-tree/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_538.java) | O(nlogn) |O(n) | Medium | Tree
9090
|537|[Complex Number Multiplication](https://leetcode.com/problems/complex-number-multiplication/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_537.java) | O(1) |O(1) | Medium | Math, String
91-
|536|[Construct Binary Tree from String](https://leetcode.com/problems/construct-binary-tree-from-string/)|[Solution](../master/src/main/java/com/fishercoder/solutions/ConstructBinaryTreefromString.java) | O(n) |O(h) | Medium | Recursion
91+
|536|[Construct Binary Tree from String](https://leetcode.com/problems/construct-binary-tree-from-string/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_536.java) | O(n) |O(h) | Medium | Recursion
9292
|535|[Encode and Decode TinyURL](https://leetcode.com/problems/encode-and-decode-tinyurl/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_535.java) | O(1) |O(n) | Medium | Design
9393
|533|[Lonely Pixel II](https://leetcode.com/problems/lonely-pixel-ii/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_533.java) | O(m*n) |O(m) (m is number of rows) | Medium | HashMap
9494
|532|[K-diff Pairs in an Array](https://leetcode.com/problems/k-diff-pairs-in-an-array/)|[Solution](../master/src/main/java/com/fishercoder/solutions/KdiffPairsinanArray.java) | O(n) |O(n) | Easy | HashMap

src/main/java/com/fishercoder/solutions/ConstructBinaryTreefromString.java renamed to src/main/java/com/fishercoder/solutions/_536.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
There will only be '(', ')', '-' and '0' ~ '9' in the input string.
2323
An empty tree is represented by "" instead of "()".
2424
*/
25-
public class ConstructBinaryTreefromString {
25+
public class _536 {
2626

2727
public TreeNode str2tree(String s) {
2828
if (s.equals("")) return null;

src/test/java/com/fishercoder/ConstructBinaryTreefromStringTest.java renamed to src/test/java/com/fishercoder/_536Test.java

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

33
import com.fishercoder.common.classes.TreeNode;
4-
import com.fishercoder.solutions.ConstructBinaryTreefromString;
4+
import com.fishercoder.solutions._536;
55
import org.junit.Before;
66
import org.junit.BeforeClass;
77
import org.junit.Test;
88

99
import static junit.framework.Assert.assertEquals;
1010

11-
public class ConstructBinaryTreefromStringTest {
12-
private static ConstructBinaryTreefromString test;
11+
public class _536Test {
12+
private static _536 test;
1313
private static TreeNode expected;
1414
private static TreeNode actual;
1515
private static String s;
1616

1717
@BeforeClass
1818
public static void setup(){
19-
test = new ConstructBinaryTreefromString();
19+
test = new _536();
2020
}
2121

2222
@Before

0 commit comments

Comments
 (0)