leetcode/include/s0538_convert_bst_to_greater_tree.hpp
Sainnhe Park e4ec64865b
All checks were successful
ci/woodpecker/push/test Pipeline was successful
s0538
2023-02-01 12:54:52 +08:00

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