17 lines
260 B
C++
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
|