leetcode/include/s0236_lowest_common_ancesto...

12 lines
254 B
C++
Raw Permalink Normal View History

2023-01-31 08:08:05 +00:00
#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