![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
找工作
Michelle2Xiao
这个作者很懒,什么都没留下…
展开
-
剑指offer 二叉树重建 C++ 牛客网
剑指offer 二叉树重建 C++ 牛客网 /** Definition for binary tree struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) {} }; / class Solu...原创 2019-05-07 22:13:10 · 167 阅读 · 0 评论 -
旋转数组的最小数字 牛客网剑指offer
class Solution { public: int minNumberInRotateArray(vector rotateArray) { if (rotateArray.size() == 0) throw “the vector is empty”; int head = 0; int tail = rotateArray.size() - 1; int Mid = head; whi...原创 2019-05-15 14:30:53 · 104 阅读 · 0 评论 -
剑指offer 面试题8 二叉树的下一个节点 牛客网
/* struct TreeLinkNode { int val; struct TreeLinkNode *left; struct TreeLinkNode *right; struct TreeLinkNode *next; TreeLinkNode(int x) :val(x), left(NULL), right(NULL), next(NULL) { } }; / class Sol...原创 2019-05-13 10:26:13 · 128 阅读 · 0 评论