首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
箫筱沐羽
阿里云_技术专家
同济大学
2017届
Java工程师
学习能力强,有责任心,执行力强
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(34)
把二叉树打印成多行
0
public class Solution { ArrayList<ArrayList<Integer> > Print(TreeNode pRoot) { ArrayList<ArrayList<Integer>> results ...
发表于 2016-02-23 13:34:56
链表中环的入口结点
0
public class Solution { public ListNode EntryNodeOfLoop(ListNode pHead) { if (pHead==null||pHead.next==null) { return null; ...
发表于 2016-02-22 21:47:46
把字符串转换成整数
0
public class Solution { public int StrToInt(String str) { int size = str.length(); if (str.equals("")||size==0) { ...
发表于 2016-02-22 21:13:33
构建乘积数组
0
import java.util.ArrayList; public class Solution { public int[] multiply(int[] A) { int length = A.length; int[] B = new int[length]; ...
发表于 2016-02-22 20:54:57
数组中重复的数字
0
方法一:额外的数组,计算每个数字出现的次数 public class Solution { public boolean duplicate(int numbers[],int length,int [] duplication) { int[] array = new int[l...
发表于 2016-02-22 20:28:05
不用加减乘除做加法
893
public class Solution { public int Add(int num1,int num2) { while (num2!=0) { int temp = num1^num2; num2 = (num1&a...
发表于 2016-02-22 19:39:30
和为S的连续正数序列
0
import java.util.ArrayList; public class Solution { public ArrayList<ArrayList<Integer> > FindContinuousSequence(int sum) { Ar...
发表于 2016-02-22 16:19:23
和为S的两个数字
0
import java.util.ArrayList; import java.util.HashMap; public class Solution { public ArrayList<Integer> FindNumbersWithSum(int [] array,int...
发表于 2016-02-22 15:55:35
数组中只出现一次的数字
0
public class Solution { public void FindNumsAppearOnce(int [] array,int num1[] , int num2[]) { int length = array.length; num1[0] ...
发表于 2016-02-21 17:14:36
判断是不是平衡二叉树
0
public class Solution { public boolean IsBalanced_Solution(TreeNode root) { if (root==null) { return true; } else { ...
发表于 2016-02-21 16:22:56
首页
上一页
1
2
3
4
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题