摘要: ```C++ class Solution { public: void push(int node) { stack1.push(node); } int pop() { if(stack1.empty() && stack2.empty()){ return -1; } if(!s... 阅读全文
posted @ 2018-08-21 20:07 一条图图犬 阅读(76) 评论(0) 推荐(0) 编辑
摘要: ```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 ... 阅读全文
posted @ 2018-08-21 19:30 一条图图犬 阅读(464) 评论(0) 推荐(0) 编辑
摘要: ```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 阅读全文
posted @ 2018-08-21 17:20 一条图图犬 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 头文件 源文件 C++ include include include "AVLTreeNode.h" template AVLTree::AVLTree():mRoot(nullptr){} template AVLTree::~AVLTree() { destroy(mRoot); } / 获取 阅读全文
posted @ 2018-08-21 13:40 一条图图犬 阅读(310) 评论(0) 推荐(0) 编辑