满帮测开三面面经

啊啊啊一面二面都不用手撕为啥三面来了个手撕啊
1.自我介绍
2.手撕数组不去重最小 k 个数
3.实习经历拷打
4.在京东实习加班到几点
5.讲一下实习期间的具体一个需求是怎么测试的
6.测出的比较有深度的 bug
7.服务端实现的逻辑(不太会)
8.什么时候能去实习
9.反问
面完两天,收到测评了
全部评论
我也,还以为是主管面,纯技术面,拷打我四十多分钟,最后写个线程题
点赞 回复 分享
发布于 10-23 17:13 江苏
方便问下,三面面完后有说什么时候出结果吗
点赞 回复 分享
发布于 10-23 17:21 上海
综合评估了吗
点赞 回复 分享
发布于 10-23 17:43 江西
#include <iostream> (30316)#include <queue> #include <vector> using namespace std; class Solution { public: vector<int> findKSmallest(vector<int>& nums, int k) { // 定义一个大顶堆(使用priority_queue,默认是大顶堆) priority_queue<int> max_heap; for (int num : nums) { if (max_heap.size() < k) { max_heap.push(num); } else if (num < max_heap.top()) { max_heap.pop(); max_heap.push(num); } } vector<int> result; while (!max_heap.empty()) { result.push_back(max_heap.top()); max_heap.pop(); } return result; } }; int main() { vector<int> nums = {4, 2, 7, 1, 9, 3, 5}; int k = 3; Solution solution; vector<int> result = solution.findKSmallest(nums, k); for (int num : result) { cout << num << " "; } cout << endl; return 0; }
点赞 回复 分享
发布于 10-23 18:10 广东

相关推荐

1 收藏 评论
分享
牛客网
牛客企业服务