This commit is contained in:
2023-01-31 11:05:33 +08:00
parent 38d44a6fa8
commit e5b2a0bd94
2 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
#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