首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
K乀
快手_Java开发工程师
东南大学
2020届
Java工程师
算法有待提高
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(10)
把二叉树打印成多行
1
ArrayList<ArrayList<Integer> > Print(TreeNode pRoot) { if(pRoot==null){ return new ArrayList<>(); } ...
发表于 2019-07-26 22:14:02
替换空格
1
public String replaceSpace(StringBuffer str) { int index = str.indexOf(" "); while(index!=-1){ str.replace(index,index+1,"%20...
发表于 2019-07-26 12:14:10
删除链表中重复的结点
1
public ListNode deleteDuplication(ListNode pHead){ if(pHead==null){ return null; } //每次查找节点的起始节点都是原始的头节点 ...
发表于 2019-07-24 23:26:23
数组中重复的数字
1
public boolean duplicate(int numbers[],int length,int [] duplication) { if(numbers==null||numbers.length<=0||numbers.length!=length){ ...
发表于 2019-07-22 21:57:32
孩子们的游戏(圆圈中最后剩下的数)
1
public int LastRemaining_Solution(int n, int m) { if(n==0||m==0){ return -1; } ArrayDeque<Integer> deque = n...
发表于 2019-07-21 22:42:37
扑克牌顺子
1
public boolean IsContinuous(int [] numbers) { if(numbers==null||numbers.length<=0){ return false; } Arrays.sor...
发表于 2019-07-21 20:48:43
和为S的连续正数序列
1
import java.util.ArrayList; import java.util.Collections; public class Solution { public ArrayList<ArrayList<Integer> > FindContinuous...
发表于 2019-07-20 00:51:32
包含min函数的栈
1
用了两个栈作,一个为存储栈,一个为辅助栈,一个Integer作为记录最小值 Stack<Integer> stack = new Stack<>(); Stack<Integer> fuStack = new Stack<>(); ...
发表于 2019-06-01 21:14:07
以下符号中不能用作标识符的是()。
1
D,struct是关键字,关键字不能作为标识符
发表于 2019-03-11 15:31:33
检查程序,是否存在问题,如果存在指出问题所在,如果不存在,说明输出结果。
23
首先进入main方法,new一个Example,会在栈中有一个ex的引用指向堆中的Example对象,同时str和ch也会指向该对象中的对应的String和char[],然后执行change方法,此时会在栈中生成两个局部变量,str和ch[],其中ch[]指向的是Example对象的数组,str此时...
发表于 2019-03-06 12:31:30
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题