今際の国の呵呵君
Sunday, October 22, 2017
[LeetCode]Shuffle an Array
用
Fisher-Yates
算法即可,时间复杂度O(n),常数空间,代码如下:
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment