今際の国の呵呵君
Sunday, October 22, 2017
[LeetCode]Linked List Random Node
用
Reservoir Sampling
解即可,线性时间常数空间,代码如下:
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment