注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
本来想投实习的,不小心投错了成全职了,也就做了……
五道数学,两道coding
数学:
1. Probability for a ball Selection: a bag has 3 white balls and 5 black balls. take two draws randomly, ask for the probability in second drawing with white ball (这里白球改成了黑球) 20/56
2. Cycle-Free Graph: A graph have N vertices. What is the maximum number of edges it can have so that the undirected graph is cycle-free? Answer: N-1.
3. 口袋 A 有 1 个蓝球 4 个黄球,B 有 3 个蓝球 2 个黄球,随机拿一个球,问一直 是蓝色球的情况下,球从 A 口袋里面出来的概率有多大? Answer: 1/4.
4. 还有一道题是从 1st ave,121 street 走到 2ed ave,1 street,哪里掉东西概率最 大? Answer 2ed ave,42
5. -5, -8, -11... 101th number is? -305
coding:
Merge String原题.
Office layout problem 不知道是不是原题,面经没见过,leetcode上有解答
求加米 ➕米
|