What is the best way to choose a random value in a stream?# JobHunting - 待字闺中
l*8
1 楼
网上看到的G家题目:
What is the best way to choose a random value in a stream? Given that each
of them has a chance of occurring equally。
我一点儿思路都没有。 不就是随便选吗?
What is the best way to choose a random value in a stream? Given that each
of them has a chance of occurring equally。
我一点儿思路都没有。 不就是随便选吗?