随笔分类 -  resvior sampling

398. Random Pick Index
摘要:Given an array of integers with possible duplicates, randomly output the index of a given target number. You can assume that the given target number must exist in the array. Note:
The array size can ... 阅读全文

posted @ 2018-11-06 08:17 猪猪🐷

导航