s0236
All checks were successful
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
2023-01-31 16:08:05 +08:00
parent e1d3423ee0
commit 837812e599
2 changed files with 28 additions and 0 deletions

View File

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