Algorithms Flashcards

1
Q

Fisher-Yates shuffle. What is it? Implement?

A

Fisher-Yates shuffle allows you to shuffle an array in random order @ O(n).

var a = [1,2,3,4,5];
(FINISH)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly