Test case details

Preparation Code

let n = 10000; const from = length => Array.from({length}); const fill= length => Array(length).fill(0);

Test cases

Test #1

from(n)

Test #2

fill(n)