首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
writezen
中国社会科学院
2016届
安卓工程师
文艺中年
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(40)
数组中出现次数超过一半的数字
3
public static int MoreThanHalfNum_Solution(int[] array) { if(array==null) return 0; HashMap<Integer,Integer> hashMap...
发表于 2015-04-28 22:20:25
复杂链表的复制
0
import java.util.HashMap; public class Solution { public RandomListNode Clone(RandomListNode pHead){ if(pHead==null) return pH...
发表于 2015-04-25 22:06:01
二叉树中和为某一值的路径(二)
30
import java.util.ArrayList; import java.util.Stack; public class Solution { public ArrayList<ArrayList<Integer>> FindPath(TreeNode roo...
发表于 2015-04-22 23:58:11
二叉搜索树的后序遍历序列
27
import java.util.Arrays; public class Solution { public static boolean VerifySquenceOfBST(int[] sequence) { if(sequence==null||sequence.len...
发表于 2015-04-22 16:17:53
从上往下打印二叉树
0
import java.util.ArrayList; import java.util.ArrayDeque; import java.util.Queue; public class Solution { public ArrayList<Integer> PrintFrom...
发表于 2015-04-21 23:02:33
栈的压入、弹出序列
0
import java.util.ArrayList; import java.util.Stack; public class Solution { public boolean IsPopOrder(ArrayList<Integer> pushA,ArrayList<...
发表于 2015-04-20 23:05:08
包含min函数的栈
0
public class Solution { Stack<Integer> dataStack= new Stack<Integer>(); Stack<Integer> minStack=new Stack<Integer&g...
发表于 2015-04-19 21:42:18
顺时针打印矩阵
0
public static ArrayList<Integer> printMatrix(int [][] matrix) { if(matrix==null) return null; ArrayList<Integer&g...
发表于 2015-04-19 20:01:47
树的子结构
0
public class Solution { public boolean HasSubtree(TreeNode root1, TreeNode root2) { boolean result=false; if(root1!=null&&root2!=null){ ...
发表于 2015-04-18 16:53:11
合并两个排序的链表
76
public class Solution { public ListNode Merge(ListNode list1, ListNode list2) { if(list1==null) return list2; else if(list2==null) return list1; ...
发表于 2015-04-17 15:08:36
首页
上一页
1
2
3
4
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题