美团校招测开一面 60min

八股 + 项目 + 场景
1.实习介绍
2.项目问题
3.算法:lc easy 20.有效的括号(只有一种括号)
4.对于刚才写的代码,要求进行测试,写出来测试样例,针对异常情况怎么处理
5.sql题目:有一张user表,字段为(name,score),按照名字出现的次数从大到小排序
6.get和post方法的区别和使用场景,他们在请求的格式上有什么区别
7.讲一下url的组成
8.有时候会发现响应码是404或者是502,是什么情况造成的
9.Set、Map、List 详细介绍,列举使用场景
10.git 分支合并的场景处理
11.SpringMVC的结构,讲一下请求来到的整个过程
12.前端以及后端单独的测试,联合测试怎么做,出现了问题怎么定位是前端还是后端出现了问题
13.优惠卷发放的场景下,出现了问题怎么解决和定位
14.刷脸打卡,线上签到怎么做测试,测试哪些方面,测试样例给出来
15.对大模型的理解,怎么看待大模型
16.介绍一下自己的优点和缺点
反问
1.简历改进
2.部门业务
全部评论
uu问问美团测开现在还在约面吗
点赞 回复 分享
发布于 2025-12-24 22:31 北京

相关推荐

(码风很屎别在意~)1.很简单直接都是一个数字就行#include <bits/stdc++.h>using namespace std;#define endl '\n';void solve() {int n;cin >> n;vector<int> v(n + 1);for(int i = 1; i <= n; i++) {cin >> v[i];cout << (n + 1) - v[i] << " \n"[i == n];}}int main() {ios::sync_with_stdio(0);cin.tie(0),cout.tie(0);int t;cin >> t;while(t--) {solve();}}2.只用算平方就行了,直接暴力。如下#include <bits/stdc++.h>using namespace std;#define endl '\n';bool cal(int x) {int tot = 0;for(int i = 1; i * i <= x; i++) {if(x / i * i == x)tot += 2;}if(tot % 2)return false;else return true;}void solve() {int l, r;cin >> l >> r;int lmin = sqrt(l);int ans = 0;lmin = lmin * lmin == l ? lmin : lmin + 1;if(lmin == 1)ans++, lmin++;for(int i = lmin; i * i <= r; i++) {if(cal(i * i))ans++;}cout << ans;}int main() {ios::sync_with_stdio(0);cin.tie(0),cout.tie(0);int t;t = 1;while(t--) {solve();}}3.稍微推一下公式就行,题解如下#include <bits/stdc++.h>using namespace std;#define endl '\n';#define int long longint mod = 1e9 + 7;const int N = 1e6 + 10;int a[N];void solve() {int k, q;cin >> k >> q;for(int i = 1; i <= k; i++) {a[i] = 1;}a[k + 1] = k ;int tot = k;for(int i = k + 2; i <= 1000000; i++) {tot = ((tot + a[i - 1])  - a[i - k - 1]);a[i] = tot % mod;}while(q--) {int x;cin >> x;cout << a[x] % mod << endl;}}signed main() {ios::sync_with_stdio(0);cin.tie(0),cout.tie(0);int t;t = 1;while(t--) {solve();}}
一起聊美团
点赞 评论 收藏
分享
评论
1
7
分享

创作者周榜

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