首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
happyYolanda
中国科学院软件研究所
未填写毕业时间
C++工程师
热爱算法的女子
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(5)
树的子结构
0
class Solution { public: bool HasSubtree(TreeNode* pRoot1, TreeNode* pRoot2){ if (pRoot2 == NULL || pRoot1 == NULL){ return fa...
发表于 2015-10-10 17:32:20
斐波那契数列
0
class Solution { public: int Fibonacci(int n) { if (n == 0){ return 0; } if (n == 1 || n == 2){ ...
发表于 2015-10-09 11:30:31
旋转数组的最小数字
0
class Solution { public: int minNumberInRotateArray(vector<int> rotateArray) { if (rotateArray.size() == 0){ return 0; ...
发表于 2015-10-09 11:11:57
用两个栈实现队列
0
class Solution { public: void push(int node) { stack1.push(node); } int pop() { int result = -1; if (!stack2.empty...
发表于 2015-10-08 22:43:45
重建二叉树
0
class Solution { public: struct TreeNode* reConstructBinaryTree(vector<int> pre,vector<int> in) { if (pre.size() == 0 || in.si...
发表于 2015-10-08 22:13:11
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题