首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
JacobGo!
阿里巴巴_云智能_Java开发
门头沟学院
2019届
Java工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(181)
下列关于修饰符混用的说法,错误的是( )
0
b也是错的
发表于 2017-06-16 23:55:54
矩阵中的路径
0
/* * 剑指offer中的回溯法:矩阵用一维数组表示 */ public boolean hasPath(char[] matrix, int rows, int cols, char[] str) { // 异常输入 if (matrix == null || rows <...
发表于 2017-06-16 10:37:42
序列化二叉树
0
static StringBuilder sb = null; static String Serialize(TreeNode root) { if (root == null) return "#"; sb = new StringBuilder(); ...
发表于 2017-06-12 14:45:52
按之字形顺序打印二叉树
0
public ArrayList<ArrayList<Integer>> Print(TreeNode pRoot) { //result用来存储结果 ArrayList<ArrayList<Integer>> result = new Arr...
发表于 2017-06-12 10:15:05
把二叉树打印成多行
0
ArrayList<ArrayList<Integer> > Print(TreeNode pRoot) { ArrayList<ArrayList<Integer>> result=new ArrayList<ArrayList<In...
发表于 2017-06-11 10:12:48
对称的二叉树
2
boolean isSymmetrical(TreeNode pRoot) { if (pRoot == null) return true; return isSymmetrical(pRoot.left, pRoot.right); } //比较左右子树对应节点是否相同 pr...
发表于 2017-06-09 11:21:16
二叉树的下一个结点
1
public TreeLinkNode GetNext(TreeLinkNode pNode) { if (pNode == null) return null; TreeLinkNode tmp = null; //如果pNode的右子树为空 if (pNode.right ...
发表于 2017-06-09 10:24:16
字符流中第一个不重复的字符
1
//字符范围(转int后):-128~127 int[] hash=new int[256]; StringBuilder sb=new StringBuilder(); //Insert one char from stringstream public void Insert(ch...
发表于 2017-05-31 11:55:38
数组中重复的数字
0
public class Demo1 { /* * 方法一:时间复杂度O(n),空间复杂度O(n) 运用哈希表的原理 非最优解法 */ public boolean duplicate_1(int numbers[], int length, int[] duplication) { ...
发表于 2017-05-29 10:01:21
把字符串转换成整数
52
public class Solution { public static boolean flag; public static int StrToInt(String str) { flag = false; //判断输入是否合法 ...
发表于 2017-05-19 12:23:11
首页
上一页
12
13
14
15
16
17
18
19
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题