首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
钱多事少离家近
绿盟科技_研发工程师
获赞
1180
粉丝
46
关注
30
看过 TA
184
男
西安电子科技大学
2021
Java
IP属地:湖北
我太南了
私信
关注
拉黑
举报
举报
确定要拉黑钱多事少离家近吗?
发布(124)
评论
刷题
收藏
钱多事少离家近
关注TA,不错过内容更新
关注
2019-09-11 19:57
绿盟科技_研发工程师
每日一题——数组循环右移public static int[] MoveArrayElement(int[] a, int k) {int l=a.length;if(k%l==0)return a;if(k>l) k=k%l;int b[]=new int[l];for (int i = 0; i < l; i++) {int newp=(i+k)%l;b[newp]=a[i];}return b;}面试时边界条件没考虑到,唉
0
点赞
评论
收藏
分享
2019-09-11 19:23
绿盟科技_研发工程师
每日一题——二分查找public int BinarySearch(int[] a, int x) {int low=0,high=a.length-1,mid=0;if (x<a[low]||x>a[high]||low>high) {return -1;}while (low<=high) {mid=(low+high)/2;if (a[mid]<x) {low=mid+1;}else if (a[mid]>x) {high=mid-1;}else {return mid;}}return -1;}}面试差点没写出来——干!
0
点赞
评论
收藏
分享
2019-09-11 23:08
已编辑
绿盟科技_研发工程师
百度_测开实习生_凉经
1 自我介绍 2 了解测试有哪些方法步骤吗 3 Linux常用指令功能 4 一个模块出了问题,如何从log出发定位问题出在哪 我对这个问题理解出了偏差,以为是让我用Linux指令来查找统计,巴拉巴拉写了半天。最后和面试官交流了一会才发现是让我提想法,最后也没答出来 5 进程和线程 6 C++内存 我只是个会Java的小菜鸡 7 手撕二分和循环左移 8 你还有什么问题 最后肯定是凉了因为我平时只用到了Java和Go,对C++一窍不通,而公司主要用的是C++,。当时招聘要求上也没提到C++,我就作死投了。临走的时候,面试官还很委婉的提醒我面试之前要做好...
投递百度等公司10个岗位
0
点赞
评论
收藏
分享
2019-09-10 21:32
绿盟科技_研发工程师
leetcode每日一题public Boolean isPalindrome(int x) {if(x<0||(x!=0&&x%10==0)) return false;int i=x;int rev=0;while (x>0) {rev=rev*10+x%10;x=x/10;}return (i==rev)?true:false;}
0
点赞
评论
收藏
分享
2019-09-09 20:33
绿盟科技_研发工程师
Leetcode每日一题 8. 字符串转换整数 (atoi)public int myAtoi(String str) {long res=0;str=str.trim();if (str.length()==0||str==null) return 0;char firstchar=str.charAt(0);//判断正负号int sign=1; //控制正负号int start=0; //数字起始指针if (firstchar=='+') {sign=1;start++;}else if(firstchar=='-'){sign=-1;start++;}for (int i = start; i < str.length(); i++) {if (!Character.isDigit(str.charAt(i))) {//该if处理示例4res=sign*res;return (int)res;}res=res*10+str.charAt(i)-'0';//字符串——数字常规操作if(sign==1&&res>Integer.MAX_VALUE)return Integer.MAX_VALUE;if(sign==-1&&res>Integer.MAX_VALUE)return Integer.MIN_VALUE;} return (int)(sign*res);}}
投递思源智通等公司10个岗位
0
点赞
评论
收藏
分享
2019-09-09 19:56
绿盟科技_研发工程师
2019.09.09 在牛客打卡13天!
0
点赞
评论
收藏
分享
2019-09-09 19:55
绿盟科技_研发工程师
Leetcode每日一题/*给出一个 32 位的有符号整数,你需要将这个整数中每位上的数字进行反转。示例 1:输入: 123输出: 321 示例 2:输入: -123输出: -321示例 3:输入: 120输出: 21注意:假设我们的环境只能存储得下 32 位的有符号整数,则其数值范围为 [−231, 231 − 1]。请根据这个假设,如果反转后整数溢出那么就返回 0。*/public class 反转整数 {public static void main(String[] args) {System.out.println(reverse(464564651));}private static int reverse(int x) {long res=0;while (x!=0) {res=res*10+x%10;//res变大 x=x/10; //x变小if (res>Integer.MAX_VALUE||res<Integer.MIN_VALUE) return 0;}return (int) res;}}
0
点赞
评论
收藏
分享
2019-09-08 23:16
绿盟科技_研发工程师
2019.09.08 在牛客打卡12天!
0
点赞
评论
收藏
分享
2019-09-08 23:16
绿盟科技_研发工程师
I love Linux.
0
点赞
评论
收藏
分享
2019-09-08 22:56
绿盟科技_研发工程师
java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); while(sc.hasNextLine()){ String [] s=sc.nextLine().split(" "); int sum=0; for(int i=0;i<s.length;i++){ sum=sum+Integer.parseInt(s[i]); } System.out.println(sum); } } }
0
点赞
评论
收藏
分享
2019-09-08 22:44
绿盟科技_研发工程师
java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); while(sc.hasNext()){ int n=sc.nextInt(); int sum=0; for(int j=0;j<n;j++){ int a=sc.nextInt(); sum=sum+a; } System.out.println(sum); } } }
0
点赞
评论
收藏
分享
2019-09-08 22:36
绿盟科技_研发工程师
java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); while(sc.hasNext()){ int a=sc.nextInt(); int b=sc.nextInt(); if(a==0||b==0) return; System.out.println(a+b); } } }
0
点赞
评论
收藏
分享
2019-09-08 22:31
绿盟科技_研发工程师
java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); while(sc.hasNext()){ int n=sc.nextInt(); if(n==0) return; int sum=0; for(int i=0;i<n;i++){ int...
0
点赞
评论
收藏
分享
2019-09-07 19:21
绿盟科技_研发工程师
Linux
2019.09.07 在牛客打卡11天!
0
点赞
评论
收藏
分享
2019-08-31 16:20
绿盟科技_研发工程师
2019.08.31 在牛客打卡10天!
0
点赞
评论
收藏
分享
1
4
5
6
7
8
9
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务