首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
黄小斜
米哈游_数据平台部_Java工程师
华中科技大学
2019届
Java工程师
Java技术江湖
关注
私信
加入黑名单
举报TA
TA的博客
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(151)
树的子结构
1
/** public class TreeNode { int val = 0; TreeNode left = null; TreeNode right = null; public TreeNode(int val) { this.val = v...
发表于 2018-03-27 18:29:23
两个链表的第一个公共结点
1
一样的思路却没有通过,求指点 public int length (ListNode a) { int len = 0; while (a != null) { len ++; a = a.next; ...
发表于 2018-03-27 10:19:37
复杂链表的复制
0
代码逻辑应该没错,但是老是空指针,有没有大神帮忙看下 public RandomListNode Clone(RandomListNode pHead) { RandomListNode w = new RandomListNode(0); Rando...
发表于 2018-03-27 10:12:09
栈的压入、弹出序列
1
//要注意的细节挺多的。比如终止条件 import java.util.Stack; public class Solution { public static boolean IsPopOrder(int[] pushA, int[] popA) { St...
发表于 2018-03-26 23:44:49
和为S的连续正数序列
1
双指针形成一前一后的序列。依次比较。 import java.util.ArrayList; public class Solution { public static ArrayList<ArrayList<Integer>> FindContinuousSe...
发表于 2018-03-23 23:35:34
数组中只出现一次的数字
1
import java.util.HashMap; import java.util.Set; //num1,num2分别为长度为1的数组。传出参数 //将num1[0],num2[0]设置为返回结果 public class Solution { public void FindNumsA...
发表于 2018-03-23 21:47:05
构建乘积数组
1
import java.util.Arrays; public class Solution { public int[] multiply(int[] A) { int []b = new int[A.length]; int sum = 1; ...
发表于 2018-03-23 21:02:00
第一个只出现一次的字符
1
另一种思路,先排序,后遍历,找到最早出现字母的下标 import java.util.ArrayList; import java.util.Arrays; public class Solution { public int FirstNotRepeatingChar(S...
发表于 2018-03-23 19:27:01
丑数
2
妙啊,妙啊。 public class Solution { public static int GetUglyNumber_Solution(int index) { if (index == 0) return 0; int []res = new int...
发表于 2018-03-23 19:02:38
把数组排成最小的数
0
import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; public class Solution { public static String PrintMinNumbe...
发表于 2018-03-23 17:11:13
首页
上一页
2
3
4
5
6
7
8
9
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题