Skip to main content

12954. x만큼 간격이 있는 n개의 숫자

Solution

function solution(x, n) {
return Array.from({ length: n }, (_, i) => (i + 1) * x);
}

Review

.

References