16 lines
274 B
C++
16 lines
274 B
C++
|
#ifndef S0108_CONVERT_SORTED_ARRAY_TO_BINARY_SEARCH_TREE_HPP
|
||
|
#define S0108_CONVERT_SORTED_ARRAY_TO_BINARY_SEARCH_TREE_HPP
|
||
|
|
||
|
#include <vector>
|
||
|
|
||
|
#include "structures.hpp"
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
class S0108 {
|
||
|
public:
|
||
|
TreeNode* sortedArrayToBST(vector<int>& nums);
|
||
|
};
|
||
|
|
||
|
#endif
|