首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
林达浪
字节跳动_效率工程_后端开发工程师
广东工业大学
2020届
Java工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(5)
数组中的逆序对
1
//这道题目直接使用归并排序,只需在归并排序的判断大小位置去进行逆序对统计即可 public class Solution { long result=0; public int InversePairs(int [] array) { if(array==null...
发表于 2019-01-12 10:34:19
数组中只出现一次的数字
1
//使用一个hashmap去存放整型数组的元素和出现的次数,最后遍历hashmap找出出现次数为1的数字 public class Solution { public void FindNumsAppearOnce(int[] array, int num1[], int num2[]) {...
发表于 2019-01-10 10:37:26
二叉搜索树的后序遍历序列
1
public class Solution { public boolean VerifySquenceOfBST(int [] sequence) { //如果数组为空或者长度为0,则返回false if(sequence==null||sequence.l...
发表于 2018-11-23 11:18:15
旋转数组的最小数字
1
public class Solution { public int minNumberInRotateArray(int [] array) { if(array.length==0) return 0; int head=0; int ta...
发表于 2018-11-17 20:54:06
用两个栈实现队列
1
public class Solution { Stack<Integer> stack1 = new Stack<Integer>(); Stack<Integer> stack2 = new Stack<Integer>(); ...
发表于 2018-11-17 14:16:09
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题