首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
成程晨
华中科技大学
2020届
Java工程师
铁头娃
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(157)
数组中重复的数字
1
public boolean duplicate(int numbers[],int length,int [] duplication) { if(length == 0) { return false; } int[] bu...
发表于 2019-02-20 12:04:57
把字符串转换成整数
1
public class Solution { public int StrToInt(String str) { if(str.equals("")) return 0; char[] cs = str.toCharArray(); ...
发表于 2019-02-19 17:41:56
扑克牌顺子
1
import java.util.*; public class Solution { public boolean IsContinuous(int [] numbers) { if(numbers.length == 0) return false; Ar...
发表于 2019-02-19 17:24:55
翻转单词序列
1
public class Solution { public String ReverseSentence(String str) { String res = ""; String[] strs = str.split(" &q...
发表于 2019-02-19 17:15:34
左旋转字符串
2
public class Solution { public String LeftRotateString(String str,int n) { if(str.equals("")) return ""; n %= ...
发表于 2019-02-19 16:59:28
把数组排成最小的数
1
/* 将numbers转成字符串数组,按某一规则排序 看了下评论区,确实感觉自己写得好冗余. */ import java.util.*; public class Solution { public String PrintMinNumber(int [] numbers...
发表于 2019-02-18 20:43:36
和为S的两个数字
1
// 双指针 import java.util.ArrayList; public class Solution { public ArrayList<Integer> FindNumbersWithSum(int [] array,int sum) { Arra...
发表于 2019-02-18 20:30:16
数组中只出现一次的数字
1
import java.util.*; //num1,num2分别为长度为1的数组。传出参数 //将num1[0],num2[0]设置为返回结果 public class Solution { public void FindNumsAppearOnce(int [] array,int n...
发表于 2019-02-18 19:52:24
判断是不是平衡二叉树
1
public class Solution { public boolean IsBalanced_Solution(TreeNode root) { if(root == null) return true; return helper(root); ...
发表于 2019-02-18 19:43:41
二叉树的深度
1
import java.util.*; public class Solution { public int TreeDepth(TreeNode root) { if(root == null) return 0; return Math.max(TreeD...
发表于 2019-02-18 19:22:36
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题