首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
南楼木头
武汉大学
2019届
Java工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(14)
机器人的运动范围
1
public class Solution { public int movingCount(int threshold, int rows, int cols){ if(threshold<0||rows<=0||cols<=0) ...
发表于 2018-04-13 22:09:30
数据流中的中位数
1
import java.util.Comparator; import java.util.PriorityQueue; public class Solution { int count = 0; PriorityQueue<Integer> min = new Pri...
发表于 2018-04-13 17:19:39
按之字形顺序打印二叉树
1
import java.util.ArrayList; import java.util.Stack; /* public class TreeNode { int val = 0; TreeNode left = null; TreeNode right = null; ...
发表于 2018-04-13 16:00:26
和为S的连续正数序列
1
import java.util.ArrayList; public class Solution { public ArrayList<ArrayList<Integer> > FindContinuousSequence(int sum) { Ar...
发表于 2018-04-10 20:45:12
丑数
1
public class Solution { public int GetUglyNumber_Solution(int index) { if(index == 0) return 0; int[] res = new int...
发表于 2018-04-03 15:34:52
整数中1出现的次数(从1到n整数中1出现的次数)
0
public class Solution { public int NumberOf1Between1AndN_Solution(int n) { int count = 0; for(int i =1;i<=n;i=i*10){ ...
发表于 2018-04-03 11:10:47
最小的K个数
1
手撸堆排序。。 public class Solution { public ArrayList<Integer> GetLeastNumbers_Solution(int [] input, int k) { ArrayList<Integer> r...
发表于 2018-03-28 16:52:35
二叉搜索树与双向链表
1
左中右的顺序即为正常顺序,故是中序遍历算法 public class Solution { TreeNode head; TreeNode res; public TreeNode Convert(TreeNode pRootOfTree) { subConv...
发表于 2018-03-28 13:11:26
二叉搜索树的后序遍历序列
1
public class Solution { public boolean VerifySquenceOfBST(int [] sequence) { if(sequence.length == 0) return false; re...
发表于 2018-03-28 10:06:01
从上往下打印二叉树
1
public class Solution { public ArrayList<Integer> PrintFromTopToBottom(TreeNode root) { ArrayList<Integer> res = new ArrayList...
发表于 2018-03-28 09:34:23
首页
上一页
1
2
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题