首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
星缘小梦
英特尔_软件工程师
西安电子科技大学
2019届
C++工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(20)
二叉搜索树的后序遍历序列
0
class Solution: def VerifySquenceOfBST(self, sequence): # write code here if not sequence: return False if len...
发表于 2018-07-22 15:36:22
树的子结构
0
class Solution { public: bool HasSubtree(TreeNode* pRoot1, TreeNode* pRoot2) { if (pRoot1==nullptr || pRoot2 == nullptr) r...
发表于 2018-07-18 17:42:27
合并两个排序的链表
0
class Solution { public: ListNode* Merge(ListNode* pHead1, ListNode* pHead2) { if (pHead1==nullptr ) return pHead2; ...
发表于 2018-07-18 17:11:09
反转链表
0
class Solution { public: ListNode* ReverseList(ListNode* pHead) { if (pHead==nullptr) return NULL; ListNode* p1=pHead;...
发表于 2018-07-13 16:16:38
链表中倒数第k个结点
0
class Solution: def FindKthToTail(self, head, k): # write code here if not head or k<=0: return None head_b...
发表于 2018-07-13 15:47:20
调整数组顺序使奇数位于偶数前面
0
# -*- coding:utf-8 -*- class Solution: def reOrderArray(self, array): # write code here begin=0 last=0 while last&...
发表于 2018-07-13 14:58:40
矩阵中的路径
0
# -*- coding:utf-8 -*- class Solution: def hasPath(self, matrix, rows, cols, path): # write code here if not matrix or rows <= ...
发表于 2018-07-12 21:45:36
机器人的运动范围
0
# -*- coding:utf-8 -*- class Solution: def movingCount(self, threshold, rows, cols): # write code here if threshold<0 or rows&l...
发表于 2018-07-12 17:29:50
二进制中1的个数
0
class Solution: def NumberOf1(self, n): # write code here count=0 flag=1 for i in range(32): if n &...
发表于 2018-07-12 10:41:42
矩形覆盖
0
class Solution: def rectCover(self, n): # write code here result=[0,1,2] if n>2: for i in range(3,n+1): ...
发表于 2018-07-12 10:08:21
首页
上一页
1
2
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题