Skip to content

Commit 5a97328

Browse files
refactor 108
1 parent a55087b commit 5a97328

File tree

1 file changed

+0
-17
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-17
lines changed

src/main/java/com/fishercoder/solutions/_108.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,6 @@
22

33
import com.fishercoder.common.classes.TreeNode;
44

5-
/**
6-
* 108. Convert Sorted Array to Binary Search Tree
7-
*
8-
* Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
9-
* For this problem, a height-balanced binary tree is defined as a binary tree in which
10-
* the depth of the two subtrees of every node never differ by more than 1.
11-
*
12-
* Example:
13-
* Given the sorted array: [-10,-3,0,5,9],
14-
* One possible answer is: [0,-3,9,-10,null,5], which represents the following height balanced BST:
15-
*
16-
* 0
17-
* / \
18-
* -3 9
19-
* / /
20-
* -10 5
21-
*/
225
public class _108 {
236

247
public static class Solution1 {

0 commit comments

Comments
 (0)