苏州杉互健康 二面面经

第一面纯问项目,就不分享出来了。

1. GPT功能怎么实现的?
2. 调用GPT回答要60秒,但是连接超时时间只有30秒怎么办?(websocket)
3. Integer a = 127, b = 127; a==b结果是什么?讲下原理。
4. ==和equals的区别。
5. ArrayList和HashMap的底层原理。
6. HashMap线程安全吗?如果不,怎么办?
7. jdk1.7的HashMap有个bug,你了解吗?
8. 介绍一下线程池。
9. 进程和线程的区别?
10. 多线程在Java中的实现有几种?(我回答了Thread,Runnable,Callable,面试官说还有两种)
11. 线程有几种状态?(记不清了)
12. 希尔排序、插入排序了解吗?
13. 冒泡排序了解吗?时间复杂度?桶排序的过程?
14. 设计模式了解吗?Spring支持多例吗?
15. Spring的生命周期?(居然忘了)
16. 对于接口安全应该考虑哪些方面?(我回答了事务、事务传播、https、tls加密,都没回答到点子上,最后面试官说他的意思是假如一个接口一秒钟只能承载500个请求,有人构造了一万个请求来攻击怎么办?我说请求限流,用Redis➕Lua脚本做,面试官说尽量不要把限流放在应用层。没有搞懂,感觉这个问题问的很迷糊)
17. MQ在项目中怎么用的?如何保证了消息不丢失?如何保证了消息的顺序性?(都没考虑,需要加强)
18. Redis和DB的缓存一致性应该怎么保证?。双删策略为什么不行?
19. 索引是如何运行的?
20. 二叉排序树的中序遍历怎么写?
21. 数组到二叉树如何转换?
22. Redis中的内存淘汰机制?
23. 项目有一个地方查数据库特别慢,阻塞了怎么办?
24. 怎么去发现哪里慢?(慢查询日志)
25. 如果MySQL查到一个特别大的List,内存爆了怎么办?(把所有的id查出来,然后根据id一条一条查询并返回,还可以暴力加内存)

好消息是面试通过了,坏消息是还有第三面......
小插曲:面试官自己ArrayList记不清了,他说我少说了一个loadFactor。我在反问环节给他提出来了,给他讲清楚了,他说他自己再下去好好看看。总的来说面试官的水平还是很高的,可能只是这些八股他自己也忘记了吧,但是仍然不影响我个人对面试官很高的评价。
全部评论
及时,今天下午去面
点赞
送花
回复
分享
发布于 03-28 12:55 山东
佬三面问的啥呀,我马上就三面了,紧急
点赞
送花
回复
分享
发布于 03-28 19:01 山东
滴滴
校招火热招聘中
官网直投

相关推荐

The Language team at SenseTime Research is looking for outstanding PhD research interns. The students will work with a team of world-class scientists and research engineers to do research and to solve real-world challenging problems involved in LLM development and/or its financial applications, with a goal of publishing at top-tier conferences. We are looking for candidates with an outstanding research record and implementation skills in areas such as NLP/LLM, machine learning, data mining, etc..- Currently enrolled in a PhD program with focus on NLP, machine learning, data mining, etc.. or related fields- Strong publication records- Strong algorithmic problem solving skills, and proven ability to implement solutions- Senior year PhD students preferredPlease send your CV to research-language@sensetime.comBase: Shanghai, Beijing, ShenzhenPay: 400 RMB/Day, other perks include food/rental subsidiesRoll up your sleeves and get yourself ready to join us and shine out!#大模型##金融#
投递商汤科技等公司10个岗位 名企内推
点赞 评论 收藏
转发
头像
04-30 10:02
golang
投递华为等公司10个岗位
点赞 评论 收藏
转发
1 8 评论
分享
牛客网
牛客企业服务