快手2020校园招聘秋招笔试--算法C试卷 练习 解题报告 Apare_xzc

快手2020校园招聘秋招笔试–算法C试卷 解题报告 Apare_xzc

2020/4/10


网页链接:牛客链接


题型分布:

        选择题(2分/道*20道)
        编程题(15分/道*4道)


选择题中的知识点学习回顾:

在这里插入图片描述

线性回归中的残差服从均值(期望)为0的高斯分布(正态分布)。


在这里插入图片描述

一次不定方程解的个数:m个盒子放入n个小球
盒子非空:插板法:C(n-1,m-1)
盒子可空:先转化为等价非空:C(m+n-1,m-1)


在这里插入图片描述
在这里插入图片描述

直线切分平面:n*(n+1)/2+1
平面分割空间:(n^3+5n+6)/6


在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述


编程题有4道

21. 运动会

在这里插入图片描述

输入例子1
3
3 10
1 5
4 6
输出例子1
1
分析:

        加油的时长为(ed-st)/2+1, 每个节目我们可以计算出最少加油时长和最晚开始时间。
        按照最晚开始时间排序,然后贪心检查

代码:
#include <bits/stdc++.h>
using namespace std;
struct Node{
   
	int st,ed,x,t; //最迟开始时间
	void getx() {
   
		t = (ed-st)/2+1;
		x = t+st;
	} 
	bool operator < (const Node& rhs) const {
   
		return x < rhs.x;
	}
}node[20]; 
int main(void) {
   
	int n;
	cin>>n;
	for(int i=0;i<n;++i)
		scanf("%d%d",&node[i].st,&node[i].ed),node[i].getx();
	sort
  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
以下是面试中常见的37个问题,给出自己的答案,全面地观察一下自己。 General question: 1. Tell me about yourself a) 简要介绍你自己。 2. why are you interested in this position? a) 你为什么对这份工作感兴趣? 3. What are your strengths? a) 谈谈你的优势。 4. What is your biggest weakness? a) 谈谈你最大的弱点是什么? 5. Why do you feel you are right for this position? a) 为什么你认为自己适合这个职位? 6. Can you give me the highlights of your resume? a) 谈谈你的简历上有些什么值得特别关注的吗? 7. Why did you choose your major? a) 你为什么选择这个专业? 8. What are your interests? a) 你有哪些兴趣爱好呢? 9. What are your short and long-term goals? a) 你对于短期和长期的目标是什么? 10. Tell me how your friends/family would describe you? a) 如果我向你的朋友或者家人询问对你的评价,你认为他们会怎样说? 11. Using single words, tell me your three greatest strengths and one weakness? a) 用简单的词,描述你的三项最突出的优点和一个缺点。 12. What motivates you to succeed? a) 你争取成功的动力是什么? 13. What qualities do you feel are important to be successful in__(i.e. customer service)? a) 哪些品质在你看来对成功是最重要的? 14. What previous experience has helped you develop these qualities? a) 哪些之前的经历帮助你获得了这些品质? 15. Can you give me an example of teamwork and leadership? a) 你能向我列举一个展现了人的团队活动和领导力的例子吗? 16. What was your greatest challenge and how did you overcome it? a) 你经历过最大的挑战是什么?你如何跨越它的? 17. Why should I hire you over the other candidates I am interviewing? a) 我为什么要从这么多应聘者中选择你呢? 18. Do you have any questions? a) 你有一些什么问题吗? 19. What are your compensation expectations? a) 你对于报酬有什么样的期望? Leadership Questions: 20. what was your greatest accomplishment in past time? a) 在过去的日子里,你觉得自己最大的成就是什么? 21. Have you ever been asked to do something unethical? If yes, how did you handle it? a) 曾经有人要求你去做一不道德的事情吗?如果有,你是怎么处理的呢? 22. What do you do if you totally disagree with a request made by your manager? a) 如果你完全不同意你上司的某个要求,你怎么处理? Teamwork Questions: 23. When in a group setting, what is your typical role? a) 你在团队中通常的作用是什么? 24. How do you motivate a team to succeed? a) 你怎么激励团队达到成功? 25. Have you been in team situations where not everyone carried their fair share of the workload? If so, how did you handle the situation? a) 如果你所处的团队中,并不是每个成员都承担着相同的工作量,你怎样处理这种情况? Problem-Solving Questions: Problem-solving question demonstrate your ability to come up with solutions to difficult situations and your ability to think on your feet. 26. How do you prioritize when you are given too many tasks to accomplish? a) 你怎样在一堆根本做不完的工作任务中区分轻重缓急? 27. Why are manholes covers round? a) 为什么下水道的井盖是圆的? Organizational and Planning Questions: Organizational and planning questions demonstrate how you approach your job and how you think. If someone appears disorganized, more likely than not, that candidate will be rejected. 28. Tell me about a goal you set for yourself and how you accomplish it. a) 讲述一件你的经历,你为自己设定了目标,制订了计划,实施计划,达到目标。 29. Do you typically achieve what you set out to do? a) 你总是能实现自己为自己设定的目标吗? Miscellaneous Questions: 30. What de-motivates or discourages you? a) 有哪些因素可能会让你失去动力或信心? 31. Do you work better in teams or by yourself? a) 对于你来说,与团队一起工作和独自干活哪样高效率更高? 32. How important to you is a positive attitude? a) 积极的态度对你有多重要? 33. What is your definition of success? a) 你怎样定义成功? 34. What was your biggest disappointment during your college life? a) 你大学阶段最大的遗憾是什么? 35. Tell me about the most difficult decision you have had to make. a) 你曾经做过的最难的决定是什么? 36. What is your ideal job? a) 你理想的工作是什么? 37. 到现在为止,你还有应聘别的公司吗?进行得怎样?

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值