使用蓄水池抽样算法 1. 遍历数组,对于第 k 个等于 target 的数,以 1/k 的概率选择它 2. 这样可以保证每个等于 target 的索引被选中的概率相等
(int target)
source not stored for this graph (policy: none)
no outgoing calls
no test coverage detected