今天两个面试,上次那家小公司的二面,主要问了我毕设的问题,然后出了一道编程题,我又没写出来。
今天下午字节的初面,可以说惨不忍睹,问了我SQL语句和linux语句,要求直接写出来,我就看了个大概,根本不会写。
然后hr问了我TCP和UDP的区别
https://blog.csdn.net/weixin_39789689/article/details/82560805
我回答得很差。
然后出了一道基于字符串的编程,但是也没干出来。
可以说非常糟糕,最近更新一下这些方面的东西。
编程题:
https://www.cnblogs.com/zhuozige/p/12979909.html
对自动售货机如何设计测试用例
https://www.cnblogs.com/TankXiao/p/13605625.html
刷微博的时候遇到哪些问题,以及什么原因造成的?
https://www.jianshu.com/p/910054d4b5fb
Linux操作
从日志里搜索出来“猫”的记录
cat -n 1.log | grep ‘猫’
sql语句
从一个表里,记录了学生的姓名、科目和成绩的表里找出来不及格的人数
创建测试表
create table test_score(class_id varchar2(20), student_id varchar2(20),score number);
insert into test_score values(‘C70’, 1001, 50);
select t.*, rowid from test_score t;
select class_id,
count(distinct case when score < 60 then student_id end)s1,
count(distinct case when score>=60 then student_id end)s2,
count(distinct case when score is null then student_id end)s3
from test_score t group by class_id,