摘要:
```C++ class Solution { public: void push(int node) { stack1.push(node); } int pop() { if(stack1.empty() && stack2.empty()){ return -1; } if(!s... 阅读全文
摘要:
```C++ #include #include using namespace std; struct TreeNode { int val; TreeNode* left; TreeNode* right; TreeNode(int x) : val(x), left(NULL), right(NULL) {} }; class Solution ... 阅读全文
摘要:
```C++ include include using namespace std; class Solution { public: bool Find(int target, vector array) { int i = 0; int j = (int)array.size() 1; whi 阅读全文
摘要:
头文件 源文件 C++ include include include "AVLTreeNode.h" template AVLTree::AVLTree():mRoot(nullptr){} template AVLTree::~AVLTree() { destroy(mRoot); } / 获取 阅读全文