leetcode/include/s0538_convert_bst_to_greate...

14 lines
250 B
C++

#ifndef S0538_CONVERT_BST_TO_GREATER_TREE_HPP
#define S0538_CONVERT_BST_TO_GREATER_TREE_HPP
#include "structures.hpp"
class S0538 {
public:
int sum{0};
TreeNode* convertBST1(TreeNode* root);
TreeNode* convertBST2(TreeNode* root);
};
#endif