leetcode/include/s0222_count_complete_tree_nodes.hpp
2023-01-31 11:05:33 +08:00

17 lines
260 B
C++

#ifndef S0222_COUNT_COMPLETE_TREE_NODES_HPP
#define S0222_COUNT_COMPLETE_TREE_NODES_HPP
#include <queue>
#include "structures.hpp"
using namespace std;
class S0222 {
public:
int countNodes1(TreeNode* root);
int countNodes2(TreeNode* root);
};
#endif