leetcode/include/s0222_count_complete_tree_nodes.hpp

17 lines
260 B
C++
Raw Normal View History

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