This commit is contained in:
2023-02-01 10:45:58 +08:00
parent 2a188cde9d
commit 5190b92cbb
4 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
#ifndef S0235_LOWEST_COMMON_ANCESTOR_OF_A_BINARY_SEARCH_TREE_HPP
#define S0235_LOWEST_COMMON_ANCESTOR_OF_A_BINARY_SEARCH_TREE_HPP
#include "structures.hpp"
class S0235 {
public:
TreeNode* lowestCommonAncestor(TreeNode* root, TreeNode* p, TreeNode* q);
};
#endif