首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
郭军
西安邮电大学
2019届
Java工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(43)
顺时针打印矩阵
0
import java.util.ArrayList; public class Solution { public ArrayList<Integer> printMatrix(int [][] matrix) { ArrayList<Integer>...
发表于 2018-05-22 09:20:57
数值的整数次方
0
public class Solution { private static boolean g_invalidInput = false; public double Power(double base, int exponent) { g_in...
发表于 2018-05-20 22:35:08
二进制中1的个数
0
class Solution { public: int NumberOf1(int n) { int count = 0; int flag = 1; while (flag) { if (n & ...
发表于 2018-05-20 21:45:02
矩形覆盖
0
public class Solution { public int rectCover(int target) { if (target == 0) return 0; else if (target == 1) ...
发表于 2018-05-20 21:18:28
跳台阶扩展问题
0
public class Solution { public int jumpFloorII(int target) { int[] result = {1, 1}; if (target < 2) return result[t...
发表于 2018-05-20 21:01:22
跳台阶
0
public class Solution { public int jumpFloor(int target) { int[] result = {1, 2}; if (target < 3) return result[tar...
发表于 2018-05-19 23:08:07
斐波那契数列
0
public class Solution { public int Fibonacci(int n) { int[] result = {0, 1}; if (n < 2) return result[n]; i...
发表于 2018-05-19 22:21:23
旋转数组的最小数字
0
public class Solution { public int minNumberInRotateArray(int [] array) { if (array == null || array.length <= 0) throw new...
发表于 2018-05-18 17:06:13
用两个栈实现队列
0
import java.util.Stack; public class Solution { Stack<Integer> stack1 = new Stack<Integer>(); Stack<Integer> stack2 = new S...
发表于 2018-05-18 14:52:00
重建二叉树
0
public class Solution { public TreeNode reConstructBinaryTree(int [] pre,int [] in) { if (pre == null || in == null || in.length < 0) ...
发表于 2018-05-17 22:54:25
首页
上一页
1
2
3
4
5
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题