Code Challenge: Python Random List
In this tiny interview, the generate_random_list function works as expected, but it’s very slow on large test cases. Can you figure out what’s wrong and fix it without changing its statistical distribution? Your task for this code challenge is to improve the generate_random_list function in the sandbox below to run faster than 100ms for both tests. More resources We have made available these extra resources to improve your Python coding skills:








