【LeetCode】抽样 sampling(共4题)

第一部分 拒绝采样 rejection sampling

【382】Linked List Random Node

【398】Random Pick Index

第二部分 水塘抽样 reservoir sampling

【470】Implement Rand10() Using Rand7()

【478】Generate Random Point in a Circle

 

猜你喜欢

转载自www.cnblogs.com/zhangwanying/p/9964477.html