14 lines
250 B
C++
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
|