米哈游秋招后端 - IM - 一面挂

8.6投递 -> 8.10笔试(3/3) -> 8.20一面挂

长轮询嘴瓢说成长链接,sql语句具体怎么走索引晕头转向,粘包没说明白,晕掉咯

一面:
1、实习提问;
2、登录系统设计,姓名密码怎么存储在数据库,什么是sso,为什么要加盐,什么是彩虹表攻击;
3、设计一个扫码登陆系统,websocket和http区别;
4、http1.1,http2,http3;
5、http1.1中,怎么收包,怎么确定什么时候包收完了,怎么解决TCP粘包问题,header和body都存什么东西,怎么抓包,chunked知道吗;
6、mysql里假设:某个表有一个联合索引(c1,c2,c3,c4)
建表语句是:
create table t1(
c1 char(1) not null default '',
c2 char(1) not null default '',
c3 char(1) not null default '',
c4 char(1) not null default '',
c5 char(1) not null default ''
)engine myisam charset utf8;
索引是:
alter table t1 add index c1234(c1,c2,c3,c4);
下面ABCDE五个sql语句怎么走索引,执行计划是什么?
A where c1=x and c2=x and c4>x and c3=x       
B where c1=x and c2=x and c4=x order by c3  
C where c1=x and c4= x group by c3,c2 
D where c1=? and c5=? order by c2,c3 
E where c1=? and c2=? and c5=? order by c2,c3
全部评论
佬,面完多久挂的
点赞 回复 分享
发布于 08-21 16:44 浙江

相关推荐

点赞 评论 收藏
分享
碧海蓝涛:我一开始也是,后来想到比如说长度是10,希望偏移是3,只给我1,9,4可用,用9和4拼起来的次数就是2,显然比用十个1小,然后我就想到应该可以把dp扩容成两倍长度,看看dp[i]和dp[i+n],结果一下子又通过了5%,然后我又扩容到10倍,20倍,30倍,40倍,到40倍就全部通过了,我做出来自己都没绷住
投递米哈游等公司10个岗位
点赞 评论 收藏
分享
评论
点赞
2
分享

创作者周榜

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