首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
Benny1
桂林电子科技大学
2019届
Java工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(16)
第一个只出现一次的字符
0
public int FirstNotRepeatingChar(String str) { if(str == null || "".equals(str)){ return -1; } c...
发表于 2018-09-03 10:31:07
正则表达式匹配
0
public boolean match(char[] str, char[] pattern) { if(str == null || pattern ==null){ return false; } retu...
发表于 2018-08-22 10:05:03
两个链表的第一个公共结点
0
public ListNode FindFirstCommonNode(ListNode pHead1, ListNode pHead2) { Set<ListNode> comSet = new HashSet<ListNode>(); ...
发表于 2018-08-13 23:43:09
从上往下打印二叉树
0
public ArrayList<Integer> PrintFromTopToBottom(TreeNode root) { ArrayList<TreeNode> nodeQ = new ArrayList<TreeNode>(); ...
发表于 2018-08-13 22:07:32
按之字形顺序打印二叉树
0
public ArrayList<ArrayList<Integer> > Print(TreeNode pRoot) { ArrayList<ArrayList<Integer> > result = new ArrayList<...
发表于 2018-08-13 19:18:17
替换空格
0
public String replaceSpace(StringBuffer str) { if("".equals(str) || str==null){ return null; } St...
发表于 2018-08-10 23:19:01
二维数组中的查找
0
public boolean Find(int target, int [][] array) { // if(array == null || array.length<=0 || array[0].length<=0){ ret...
发表于 2018-08-10 20:17:53
顺时针打印矩阵
0
public ArrayList<Integer> printMatrix(int [][] matrix) { //矩阵的行和列 int row=matrix.length; int col=matrix[0].length; ...
发表于 2018-08-08 20:29:14
包含min函数的栈
0
//两个栈结构,一个为数据栈,保存数据,另一个的栈顶保存当前状态下栈的最小值,在数据栈入栈构造的时候需要实时维护最小值 Stack<Integer> dataStack = new Stack<Integer>(); Stack<Integer> ...
发表于 2018-08-08 17:20:57
从尾到头打印链表
0
public ArrayList<Integer> printListFromTailToHead(ListNode listNode) { ArrayList<Integer> result = new ArrayList<Integer>()...
发表于 2018-08-07 20:14:31
首页
上一页
1
2
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题