We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1daf0c commit 979e576Copy full SHA for 979e576
src/main/java/com/fishercoder/solutions/_538.java
@@ -7,25 +7,6 @@
7
import java.util.List;
8
import java.util.TreeMap;
9
10
-/**
11
- * 538. Convert BST to Greater Tree
12
- *
13
- * Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed
14
- * to the original key plus sum of all keys greater than the original key in BST.
15
-
16
- Example:
17
18
- Input: The root of a Binary Search Tree like this:
19
- 5
20
- / \
21
- 2 13
22
23
- Output: The root of a Greater Tree like this:
24
- 18
25
26
- 20 13
27
- */
28
29
public class _538 {
30
31
public static class Solution1 {
0 commit comments