首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
我是大牛膜拜吧小白
上海电子信息职业技术学院
2016届
Java工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(55)
跳台阶
0
public class Solution { public int jumpFloor(int target) { if(target==1)return 1; if(target==2)return 2; int first=1; ...
发表于 2018-01-27 14:52:32
替换空格
0
//java 解法 //Java 不允许改变字符串 public class Solution { public String replaceSpace(StringBuffer str) { if(str==null)return null; StringB...
发表于 2018-01-27 11:02:00
年终奖
0
import java.util.*; public class Bonus { public int getMost(int[][] board) { int[][] newboard=new int[6][6]; newboard[0][0]=board...
发表于 2018-01-25 19:03:59
顺时针旋转矩阵
0
import java.util.*; public class Printer { public int[] clockwisePrint(int[][] mat, int n, int m) { List<Integer> list=new ArrayLis...
发表于 2018-01-25 18:29:57
字符流中第一个不重复的字符
0
//时间复杂度O(1) 空间复杂度O(n) import java.util.Iterator; import java.util.LinkedHashSet; public class Solution { //保证有序和不重复! set+list LinkedHashSet...
发表于 2018-01-25 11:48:44
连续子数组的最大和
0
public class Solution { public int FindGreatestSumOfSubArray(int[] array) { if(array==null||array.length==0){return 0;} int max=In...
发表于 2018-01-25 09:23:15
出现一次的数字
0
public class Solution { public int singleNumber(int[] A) { int result=0; for(int temp:A){ result^=temp; } ...
发表于 2018-01-24 15:48:31
二维数组中的查找
0
//《左。。。。》最优解! public class Solution { public boolean Find(int target, int [][] array) { int m=array.length-1; int n=array[0].lengt...
发表于 2018-01-23 23:03:02
顺时针打印矩阵
0
//最优解!来自于 左神的《程序员面试代码指南》 import java.util.ArrayList; public class Solution { public ArrayList<Integer> printMatrix(int [][] matrix) { ...
发表于 2018-01-23 22:34:37
二进制中1的个数
0
public class Solution { public int NumberOf1(int n) { int count=0; while(n!=0){ count++; n=n&(n-1); ...
发表于 2018-01-23 19:31:53
首页
上一页
1
2
3
4
5
6
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题