首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
walk_along_life
字节跳动_安全与风控_大数据工程师
北京邮电大学
2020届
Java工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(15)
复杂链表的复制
0
/* public class RandomListNode { int label; RandomListNode next = null; RandomListNode random = null; RandomListNode(int label) { ...
发表于 2019-01-07 22:26:44
矩阵中的路径
0
public class Solution { public boolean hasPath(char[] matrix, int rows, int cols, char[] str){ if(rows<=0 || cols<=0 || matrix==null...
发表于 2019-01-07 16:23:25
机器人的运动范围
0
public class Solution { public static int movingCount(int threshold, int rows, int cols){ if(threshold < 0) return 0; else ...
发表于 2019-01-07 12:10:36
树的子结构
0
public class Solution { public boolean HasSubtree(TreeNode root1,TreeNode root2) { if(root2==null || root1==null) return false; ...
发表于 2019-01-06 17:09:02
替换空格
0
public class Solution { public String replaceSpace(StringBuffer str) { for(int i=0;i<str.length();i++){ if(str.charAt(i)=='...
发表于 2019-01-04 10:50:54
数字在升序数组中出现的次数
0
public class Solution { public int GetNumberOfK(int [] array , int k) { int leftIndex=0, rightIndex=0; int left=0; int ...
发表于 2018-12-11 19:03:43
整数中1出现的次数(从1到n整数中1出现的次数)
0
public class Solution { public int NumberOf1Between1AndN_Solution(int n) { if (n<0) return 0; String strN = String...
发表于 2018-12-11 17:41:47
连续子数组的最大和
0
用分治的思想来解决问题,对每一个数组,子数组都只有三种可能:在中点左侧,在中点右侧,跨越中点。 左侧最大值和右侧最大值通过递归调用来实现,其停止条件为:数组长度为1。 跨越中点的最大值通过O(n)的循环就可以找到结果。 代码如下: public...
发表于 2018-12-10 15:39:42
斐波那契数列
0
public class Solution { int[] record = new int[40]; public int Fibonacci(int n) { if(n==0) return 0; if(n==1) return 1; ...
发表于 2018-12-04 12:27:40
用两个栈实现队列
0
import java.util.Stack; public class Solution { Stack<Integer> stack1 = new Stack<Integer>(); Stack<Integer> stack2 = new S...
发表于 2018-12-04 12:02:26
首页
上一页
1
2
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题