首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
想去毕业旅行的杨桃在理财
未填写教育信息
未填写毕业时间
Java工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(6)
顺时针打印矩阵
0
import java.util.ArrayList; public class Solution { public ArrayList<Integer> printMatrix(int [][] matrix) { int startX = 0; int star...
发表于 2016-02-27 15:14:10
用两个栈实现队列
0
这是用java写的, import java.util.Stack; public class Solution { Stack<Integer> stack1 = new Stack<Integer>(); Stack<Integer> stack2 =...
发表于 2016-02-18 16:11:47
合并两个排序的链表
0
这是用JAVA写的 public ListNode Merge(ListNode list1,ListNode list2) { if ( list1==null && list2!= null) { return list2; ...
发表于 2016-02-17 21:06:55
链表中倒数第k个结点
0
这是用Java写的 public ListNode FindKthToTail(ListNode head,int k) { if (head == null || k <= 0) { return null; } ...
发表于 2016-02-17 20:43:09
反转链表
385
这是我的,很简单 public ListNode ReverseList(ListNode head) { ListNode pre = null; ListNode next = null; while (head != null) { ...
发表于 2016-02-16 09:14:35
二维数组中的查找
0
public class Solution { public boolean Find(int [][] array,int target) { if (array == null || array.length == 0 ) { re...
发表于 2016-02-05 09:57:23
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题