摘要: Given an array w of positive integers, where w[i] describes the weight of index i, write a function pickIndex which randomly picks an index in proport 阅读全文
posted @ 2018-10-13 23:05 Grandyang 阅读(13306) 评论(5) 推荐(1)
Fork me on GitHub