京东测开3.30笔试

第一题contains直接过

第二题找最小因数,i从2开始遍历,每次找到一个最小因数就一直做除法 N /= i,res+=i,直至i 不再为因数,i++
    想过可能超时,但直接过了

第三题面向结果编程
if(x==y)System.out.println(0);
else if(y ==0)System.out.println(1);
else if(x==0)System.out.println(2);
else if(x+y==0)System.out.println(3);
else System.out.println(-1);
过了
全部评论
佬你接到面试通知了吗
点赞 回复 分享
发布于 2024-04-01 19:51 安徽
大佬,我投的京东后端研发实习,收到考试时长45min的笔试通知,请问您知道这是行测还是程序笔试吗
点赞 回复 分享
发布于 2024-03-31 23:20 山东
我第二题只过了60%,用的python
点赞 回复 分享
发布于 2024-03-30 12:50 安徽

相关推荐

不愿透露姓名的神秘牛友
03-09 15:56
Q1 自我介绍Q2 读研的项目详情,问了这个项目需要什么数据Q3 学校项目与工程开发区别Q4 对“测试开发”的理解Q5 本科非科班,是数学专业优劣势Q6 是否有团队做项目的经历,反思分工不合理导致流程阻塞,提出分工上和流程上的改进方案Q7 代码题:给定一个日志文件,请解析出所有等级为"ERROR"的日志,统计对应方法名出现的次数,并按次数降序排列WARN 2024-11-16 12:01:10 CREATE_TABLE Can't find the location hfs://nsx/user/mart_x/x/test1.ERROR 2024-11-16 12:01:10 CREATE_TABLE Can't find the location hfs://nsx/user/mart_x/x/test1.Error 2024-11-27 12:01:10 CREATE_TABLE Can't find the location hfs://nsx/user/mart_x/x/test1.WARN 2024-11-27 12:01:10 DROP_TABLE Can't find the location hfs://nsx/user/mart_x/x/test1.ERROR 2024-11-21 12:01:10 DROP_TABLE Can't find the location hfs://nsx/user/mart_x/x/test1.ERROR 2024-11-27 12:01:10 DROP_TABLEERROR 2024-11-27 12:01:10 CREATE_TABLE Can't find the location hfs://nsx/user/mart_x/x/test1.ERROR 2024-11-27 00:01:10 CREATE_TABLE Can't find the location hfs://nsx/user/mart_x/x/test1.ERROR 2024-11-20 00:01:10 CREATE_TABLE Can't find the location hfs://nsx/user/mart_x/x/test1.ERROR 2024-11-27 20:01:10 DROP_TABLEERROR 2024-11-26 23:01:10 CREATE_TABLE Can't find the location hfs://nsx/user/mart_x/x/test1.楼主真是太菜了,当时没注意到要toLowerCase()。调用Scanner也没经验,nextLine()输入完阻塞等待了。是自己手动在控制台输入之后,多加一行自定义的终止符吗(例如"####")。牛客上的题都是先给定输入行数n,以前还真没注意到这个点。Q8 用AI辅助测试怎么提效Q9 实习时间Q10 反问环节这个面试感觉问的不是技术,也不是系统设计呢。估计跟我简历后端调剂到测开有关,测开的具体技术没有问。要挂了
点赞 评论 收藏
分享
评论
1
5
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务