Google Shitty question
Anonymous User
483
Mar 20, 2025
Given an integer n, generate a random permutation of numbers from 0 to n-1. Each number should appear exactly once in the output, and the order should be randomized.
n = 7
Output = [6,0,4,1,3,2,5]
n : 10^7
Guess what It's supposed to get solved with some Fisher-Yates shuffle Algorithm.
Comments (5)

