s0222
This commit is contained in:
16
include/s0222_count_complete_tree_nodes.hpp
Normal file
16
include/s0222_count_complete_tree_nodes.hpp
Normal 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
|
Reference in New Issue
Block a user