首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
写bug小能手_
西安邮电大学
2019届
Java工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(7)
顺时针打印矩阵
0
public ArrayList<Integer> printMatrix(int [][] matrix) { ArrayList<Integer> res = new ArrayList<Integer>(); int row...
发表于 2018-05-13 17:46:13
树的子结构
0
public class Solution { public boolean HasSubtree(TreeNode root1,TreeNode root2) { if(root1 == null || root2 == null){ return...
发表于 2018-05-13 13:40:37
合并两个排序的链表
0
方法一: public ListNode Merge(ListNode list1,ListNode list2) { if(list1 == null){ return list2; } if(list2 == null){ ...
发表于 2018-05-13 13:08:17
跳台阶
0
由于当前节点只能由前驱节点走一步到达,或者前前驱节点走两步到达,所以countOfWays(n) = countOfWays(n-2) + countOfWays(n-1)。 public int jumpFloor(int target) { if(target == 1){ ...
发表于 2018-05-12 16:49:18
斐波那契数列
0
public int Fibonacci(int n) { if(n <= 0){ return 0; } if(n <= 2){ return 1; } r...
发表于 2018-05-12 16:32:29
用两个栈实现队列
0
public class Solution { Stack<Integer> stack1 = new Stack<Integer>(); Stack<Integer> stack2 = new Stack<Integer>(); ...
发表于 2018-05-12 15:40:42
从尾到头打印链表
0
发表于 2018-05-12 14:08:55
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题