Skip to content

Commit 9a2ee98

Browse files
edit 109
1 parent 06e54c2 commit 9a2ee98

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ Your ideas/fixes/algorithms are more than welcome!
452452
|112|[Path Sum](https://leetcode.com/problems/path-sum/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_112.java)| O(n)|O(1) | Easy| DFS
453453
|111|[Minimum Depth of Binary Tree](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Solution](../master/src/main/java/com/fishercoder/solutions/MinimumDepthofBinaryTree.java)| O(n)|O(1)~O(h) | Easy| BFS, DFS
454454
|110|[Balanced Binary Tree](https://leetcode.com/problems/balanced-binary-tree/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_110.java)| O(n)|O(1)~O(h) | Easy| DFS
455-
|109|[Convert Sorted List to Binary Search Tree](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Solution](../master/src/main/java/com/fishercoder/solutions/ConvertSortedListtoBinarySearchTree.java)| O(n)|O(h) | Medium | DFS, Recursion
455+
|109|[Convert Sorted List to Binary Search Tree](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_109.java)| O(n)|O(h) | Medium | DFS, Recursion
456456
|108|[Convert Sorted Array to Binary Search Tree](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_108.java)| O(n)|O(h) | Medium| Tree
457457
|107|[Binary Tree Level Order Traversal II](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_107.java)| O(nlogn)|O(h) | Easy| BFS
458458
|106|[Construct Binary Tree from Inorder and Postorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_106.java)| O(n)|O(n) | Medium| Recursion, Tree
+2-3
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@
66
/**
77
* Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.
88
*/
9-
public class ConvertSortedListtoBinarySearchTree {
9+
public class _109 {
1010

1111
public TreeNode sortedListToBST(ListNode head) {
12-
TreeNode res = rec(head, null);
13-
return res;
12+
return rec(head, null);
1413
}
1514

1615
public TreeNode rec(ListNode start, ListNode end) {

0 commit comments

Comments
 (0)