首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
一梦29
南京师范大学
2018届
Java工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(17)
从上往下打印二叉树
0
public ArrayList<Integer> PrintFromTopToBottom(TreeNode root) { if(root ==null) { return new ArrayList<Integer>(); } Ar...
发表于 2018-12-04 16:43:05
栈的压入、弹出序列
0
public boolean IsPopOrder(int[] pushA,int[] popA) { int pos = 0; int flag =0; int bufflag=0; Stack<Integer> buf = new Stack&...
发表于 2018-12-04 16:27:52
顺时针打印矩阵
0
public ArrayList<Integer> printMatrix(int [][] matrix) { ArrayList<Integer> res = new ArrayList<Integer>(); int a=0; int b =0;...
发表于 2018-11-26 15:23:24
合并两个排序的链表
0
public ListNode Merge(ListNode list1,ListNode list2) { if(list1==null) { return list2; } else { if(list2==null) { return list1; } ...
发表于 2018-10-25 16:48:25
反转链表
0
public ListNode ReverseList(ListNode head) { ListNode pre; ListNode current; ListNode later; if(head==null) { ...
发表于 2018-10-13 17:17:15
链表中倒数第k个结点
0
public ListNode FindKthToTail(ListNode head,int k) { if(k==0){ return null; } else{ Queue<ListNode&...
发表于 2018-10-13 16:37:22
调整数组顺序使奇数位于偶数前面
0
public void reOrderArray(int [] array) { int[] oushu = new int[array.length]; int qi=0; int ou=0; for(int i=0;i<arr...
发表于 2018-10-13 16:09:21
数值的整数次方
0
public double Power(double base, int exponent) { return Math.pow(base, exponent); }
发表于 2018-10-12 19:17:36
二进制中1的个数
0
public int NumberOf1(int n) { byte[] res = Integer.toBinaryString(n).getBytes(); int count =0; for(int i=0;i<res.length;i++...
发表于 2018-10-12 16:18:54
矩形覆盖
0
public int rectCover(int target) { if(target<3) { return target; } else { int[] res= new int[target...
发表于 2018-10-12 15:14:28
首页
上一页
1
2
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题