首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
陈泽豪
香港城市大学
2019届
Java工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(18)
树的子结构
1
/** public class TreeNode { int val = 0; TreeNode left = null; TreeNode right = null; public TreeNode(int val) { this.val = v...
发表于 2019-04-15 22:26:33
顺时针打印矩阵
1
import java.util.ArrayList; public class Solution { public ArrayList<Integer> printMatrix(int[][] matrix) { ArrayList list = new ArrayLi...
发表于 2019-04-15 19:39:02
从上往下打印二叉树
0
import java.util.ArrayList; /** public class TreeNode { int val = 0; TreeNode left = null; TreeNode right = null; public TreeNode(int...
发表于 2019-04-15 13:33:01
栈的压入、弹出序列
0
思路就是 压栈的过程中判断数组是不是跟当前元素相等,是的话就弹出去 然后判断最后栈里面是否是空的
发表于 2019-04-15 11:16:49
反转链表
1
public class Solution { public static ListNode ReverseList(ListNode head) { if(head==null) return null; ListNode reversedHead=null; ListNode curr...
发表于 2019-04-13 23:28:18
调整数组顺序使奇数位于偶数前面
1
import java.util.ArrayList; public class Solution { public void reOrderArray(int [] array) { ArrayList<Integer> odd = new Ar...
发表于 2019-04-13 16:01:08
二进制中1的个数
1
public class Solution { public int NumberOf1(int n) { int count = 0; while(n!= 0){ count++; n = n & (n...
发表于 2019-04-13 12:38:16
斐波那契数列
1
import java.util.ArrayList; public class Solution { public int Fibonacci(int n) { ArrayList<Integer> arrayList = new ArrayList<&g...
发表于 2019-04-09 17:42:41
旋转数组的最小数字
1
import java.util.ArrayList; public class Solution { public int minNumberInRotateArray(int [] array) { for (int i = 0; i <...
发表于 2019-04-09 16:50:16
用两个栈实现队列
1
import java.util.Stack; import java.util.ArrayList; public class Solution { Stack<Integer> stack1 = new Stack<Integer>(); Stack<...
发表于 2019-04-09 16:11:54
首页
上一页
1
2
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题