Skip to content

Instantly share code, notes, and snippets.

@yungyungGwon
Created August 21, 2020 09:04
Show Gist options
  • Save yungyungGwon/721ad5c676eefcdd0cce5c2940cdeebe to your computer and use it in GitHub Desktop.
Save yungyungGwon/721ad5c676eefcdd0cce5c2940cdeebe to your computer and use it in GitHub Desktop.
Algorithm
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