首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
_XiaoTeng_
重庆大学
2018届
Java工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(11)
是否是数字
5
public boolean isNumber(String s) { return s.matches("(\\s)*([+-])?(([0-9]*\\.)?([0-9]+)|([0-9]+)(\\.[0-9]*)?)([eE][\\+-]?[0-9]+)?(\\s)*&...
发表于 2017-05-06 14:37:31
最近公共祖先
0
public int getLCA(int a, int b) { return a == b ? a : (a > b ? getLCA(a >> 1, b) : getLCA(a, b >> 1)); }
发表于 2017-05-02 19:21:30
下一个较大元素II
2
public int[] findNext(int[] A, int n) { int[] res = new int[n]; Stack<Integer> stack = new Stack<>(); Stack<Inte...
发表于 2017-05-02 17:18:23
下一个较大元素
1
public int[] findNext(int[] A, int n) { int[] res = new int[n]; Stack<Integer> stack = new Stack<>(); for(int i = ...
发表于 2017-05-02 17:04:02
两个链表的第一个公共结点
0
public ListNode FindFirstCommonNode(ListNode pHead1, ListNode pHead2) { HashSet<ListNode> set = new HashSet<>(); while(pH...
发表于 2017-04-16 16:41:41
第一个只出现一次的字符
0
public int FirstNotRepeatingChar(String str) { int[] hashtable = new int[70]; for(int i = 0; !"".equals(str) && i &l...
发表于 2017-04-15 17:22:35
数值的整数次方
0
public double Power(double base, int exponent) { if(exponent == 0){ return base == 0.0 ? 0.0 : 1.0; } int n = Math...
发表于 2017-04-05 20:52:58
投篮游戏
0
//我只想知道为什么这样会空间超时 import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); ...
发表于 2017-03-20 10:22:14
孩子们的游戏(圆圈中最后剩下的数)
0
public class Solution { public int LastRemaining_Solution(int n, int m) { if(n <= 1){ return n - 1; } retur...
发表于 2017-03-13 18:55:26
回文串
0
public static void main(String[] args){ Scanner scanner = new Scanner(System.in); out: while(scanner.hasNext()){ S...
发表于 2017-03-13 12:56:49
首页
上一页
1
2
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题