首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
leokingofdevil
中国矿业大学(北京)
2016届
Java工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(15)
二叉搜索树与双向链表
0
public class Solution { public TreeNode Convert(TreeNode pRootOfTree) { if(pRootOfTree == null) return null; ...
发表于 2015-09-16 16:48:55
从上往下打印二叉树
0
//如果root ==null,返回null是不行的 public class Solution { public ArrayList<Integer> PrintFromTopToBottom(TreeNode root) { ArrayList<Intege...
发表于 2015-09-14 15:55:14
包含min函数的栈
0
import java.util.Stack; import java.util.LinkedList; public class Solution { LinkedList<Integer> list; public Solution(){ lis...
发表于 2015-09-11 11:31:18
反转链表
4
public class Solution { public ListNode ReverseList(ListNode head) { if(head == null) return null; //记录当前节...
发表于 2015-09-08 15:07:01
调整数组顺序使奇数位于偶数前面
0
//牺牲空间来换取时间,用一个额外数组。 import java.util.ArrayList; import java.util.List; public class Solution { public void reOrderArray(int [] array) { L...
发表于 2015-09-08 11:06:47
变位词排序
0
public ArrayList<String> sortStrings(String[] str, int n) { // write code here List<String> list = new ArrayList<String>()...
发表于 2015-09-02 20:16:49
魔术索引I
0
import java.util.*; public class MagicIndex { public boolean findMagicIndex(int[] A, int n) { // write code here if(A[0]==0) ...
发表于 2015-08-25 20:39:50
机器人走方格II
0
if(map[0][0]==0) return 0; int [][]a = new int[x+1][y+1]; for(int i=0;i<x;i++){ for(int k=0;k<y;k++){ if(i=...
发表于 2015-08-25 17:04:08
机器人走方格I
0
import java.util.*; public class Robot { public int countWays(int x, int y) { // write code here if(x+y>12) return ...
发表于 2015-08-25 16:23:18
寻找下一个结点
1
import java.util.*; /* public class TreeNode { int val = 0; TreeNode left = null; TreeNode right = null; public TreeNode(int val) { ...
发表于 2015-08-24 20:32:01
首页
上一页
1
2
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题