Created
August 21, 2020 09:04
-
-
Save yungyungGwon/721ad5c676eefcdd0cce5c2940cdeebe to your computer and use it in GitHub Desktop.
Algorithm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function solution(x, n){ | |
var answer = []; | |
var value = x; | |
for(var i = 0; i < n; i++){ | |
answer[i] = value; | |
value += x; | |
} | |
return answer; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment