leetcode/include/s0538_convert_bst_to_greate...

14 lines
250 B
C++
Raw Permalink Normal View History

2023-02-01 04:54:52 +00:00
#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