首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
疯狂的麦克斯咿呀
拼多多_基础电商_服务端研发工程师
华中科技大学
2020届
Java工程师
关注
私信
加入黑名单
举报TA
TA的博客
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(8)
数据流中的中位数
0
public class Solution { public class Mid{ double val; int flag; //1表示奇数 Mid left; Mid right; publi...
发表于 2019-08-06 19:45:04
字符流中第一个不重复的字符
0
//使用双端对列,对于加入的字符,如果队列中存在就删除队列中对应节点,不存在将字符 //加在队列末尾 import java.util.ArrayList; import java.util.LinkedList; public class Solution { //Insert one c...
发表于 2019-07-23 16:02:14
把字符串转换成整数
0
public class Solution { public int StrToInt(String str) { int n=str.length(); int res = 0; int s=1; if(n==0) retu...
发表于 2019-07-23 15:19:10
六一儿童节
0
public class SixOneChild { public static void main(String[] args) { Scanner in=new Scanner(System.in); int n=in.nextInt(); ...
发表于 2019-06-13 22:13:23
大整数相乘
0
public class BigInt { public static void main(String[] args) { Scanner in=new Scanner(System.in); String s1=in.next(); Str...
发表于 2019-06-13 21:53:25
机器人的运动范围
0
import java.util.ArrayDeque; import java.util.Queue; public class Solution { public static int movingCount(int threshold, int rows, int cols) ...
发表于 2019-05-27 21:48:34
数组中只出现一次的数字
1
//使用异或首先求出两个数的异或c,在找出c位中中随便出现为1的位置, //通过该位置为将原来数组分成两部分,每部分分别异或得到这两个数 public class Solution { public void FindNumsAppearOnce(int [] array,int nu...
发表于 2019-04-26 13:03:22
重排链表
0
/** * Definition for singly-linked list. * class ListNode { * int val; * ListNode next; * ListNode(int x) { * val = x; * ...
发表于 2019-03-04 21:46:29
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题