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)
Javascript > Algorithms > Flashcards
Fisher-Yates shuffle. What is it? Implement?
Fisher-Yates shuffle allows you to shuffle an array in random order @ O(n).
var a = [1,2,3,4,5]; (FINISH)