Skip to content

Commit 6876ab0

Browse files
edit 549
1 parent 6380ca3 commit 6876ab0

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
@@ -65,7 +65,7 @@ Your ideas/fixes/algorithms are more than welcome!
6565
|553|[Optimal Division](https://leetcode.com/problems/optimal-division/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_553.java) | O(n) | O(n) | Medium | String
6666
|552|[Student Attendance Record II](https://leetcode.com/problems/student-attendance-record-ii/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_552.java) | O(n)| O(1) | Hard| DP
6767
|551|[Student Attendance Record I](https://leetcode.com/problems/student-attendance-record-i/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_551.java) | O(n)| O(1) | Easy| String
68-
|549|[Binary Tree Longest Consecutive Sequence II](https://leetcode.com/problems/binary-tree-longest-consecutive-sequence-ii/)|[Solution](../master/src/main/java/com/fishercoder/solutions/BinaryTreeLongestConsecutiveSequenceII.java) | O(n) |O(n) | Medium | Tree
68+
|549|[Binary Tree Longest Consecutive Sequence II](https://leetcode.com/problems/binary-tree-longest-consecutive-sequence-ii/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_549.java) | O(n) |O(n) | Medium | Tree
6969
|548|[Split Array with Equal Sum](https://leetcode.com/problems/split-array-with-equal-sum/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_548.java) | O(n^2) |O(1) | Medium | Array
7070
|547|[Friend Circles](https://leetcode.com/problems/friend-circles/)|[Solution](../master/src/main/java/com/fishercoder/solutions/FriendCircles.java) | O(n^2) |O(n) | Medium | Union Find
7171
|546|[Remove Boxes](https://leetcode.com/problems/remove-boxes/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_546.java) | O(n^3) |O(n^3) | Hard| DFS, DP
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
Explanation: The longest consecutive path is [1, 2, 3] or [3, 2, 1].
2525
Note: All the values of tree nodes are in the range of [-1e7, 1e7].
2626
*/
27-
public class BinaryTreeLongestConsecutiveSequenceII {
27+
public class _549 {
2828

2929
int max = 0;
3030
public int longestConsecutive(TreeNode root) {
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
package com.fishercoder;
22

33
import com.fishercoder.common.classes.TreeNode;
4-
import com.fishercoder.solutions.BinaryTreeLongestConsecutiveSequenceII;
4+
import com.fishercoder.solutions._549;
55
import org.junit.Before;
66
import org.junit.BeforeClass;
77
import org.junit.Ignore;
88
import org.junit.Test;
99

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

12-
public class BinaryTreeLongestConsecutiveSequenceIITest {
13-
private static BinaryTreeLongestConsecutiveSequenceII test;
12+
public class _549Test {
13+
private static _549 test;
1414
private static int expected;
1515
private static int actual;
1616
private static TreeNode root;
1717

1818
@BeforeClass
1919
public static void setup(){
20-
test = new BinaryTreeLongestConsecutiveSequenceII();
20+
test = new _549();
2121
}
2222

2323
@Before

0 commit comments

Comments
 (0)