We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
💬 문제
[코딩테스트 연습 - x만큼 간격이 있는 n개의 숫자](https://school.programmers.co.kr/learn/courses/30/lessons/12954)
💬 풀이
func solution(_ x:Int, _ n:Int) -> [Int64] { var result: [Int64] = [] for i in 1...n { result.append(Int64(x * i)) } return result }
💬 더 나은 방법?
func solution(_ x:Int, _ n:Int) -> [Int64] { return Array(1...n).map { Int64($0 * x) } }
The text was updated successfully, but these errors were encountered:
#79 - x만큼 간격이 있는 n개의 숫자 문제 풀이
828c9c1
hwangJi-dev
No branches or pull requests
💬 문제
[코딩테스트 연습 - x만큼 간격이 있는 n개의 숫자](https://school.programmers.co.kr/learn/courses/30/lessons/12954)
💬 풀이
💬 더 나은 방법?
The text was updated successfully, but these errors were encountered: