说我有一个长度数字的链表N.N非常大,我事先并不知道确切的价值N.
N
如何最有效地编写一个从列表中返回k完全随机数的函数?
k
language-agnostic algorithm list
algorithm ×1
language-agnostic ×1
list ×1