1. 你们烦丁真吗??
175 replies
| by natashahollyz
| in 问与答
| 07:12:22
本来对这个人无感,但是一天几个热搜,持续一两个星期了,真要吐了,开会员都屏蔽不了
6. 北美字节(Tik ToK)的题难到逆天了
97 replies
| by zzzrf
| in 程序员
| 02:40:57
北美字节( Tik Tok )炸了,四道 OA 难到逆天,拿两道给大家感受下。如果有大佬能解答就更好了~
## 1. Common Elements in Arrays
Given two arrays containing only unsorted integers(within range [0, 1000]), write a function
to return all the common elements (each number in one array can be used only once).
Array size N:0<= N<=10000. Sort output from smallest to biggest.
example #1
[1, 2], [1] => [1] # one 1 in both arrays
example #2
[2, 1], [] => [] # no common elements
example #3
[3, 1, 3], [3, 3] => [3, 3] # both array S have two 3s.
## 2. Real Programmer Game
Real Programmer Game (RPG) is about having a hero swinging sticks at a monster.
The monster has N Health Points (НР). It is killed when HP drops to 0 or negative.
Each swing of the hero reduces monster's HP by a (evenly distributed) random number in
[0, M].
What's the probability for the hero to kill the monster in K swings?
Write a function, input N, м, K, return such probability (in [0, 1]).
Constraints
0<=N<= 1000
0<M <= 1000
0<=K<= 1000
8. 没想到阿里云居然还是亏损状态
77 replies
| by wangbenjun5
| in 云计算
| 11:58:04
早在 2017 年,阿里云就声称要在 2020 年盈利超 100 亿元,实际上呢,今年还亏了 70 亿。。。
你们觉得钱都用在哪里了?莫非又是前期补贴圈地,后期收割的套路?
9. 各位的 macbook pro 卖了多少钱?
71 replies
| by aneostart173
| in Apple
| 01:35:37
准备卖了体验体验 M1 芯片,有没有成交过的来说说?
型号:配置:价格
例子
A1989:i5, 16G, 1T: 8200