Junchive
  • About Me
  • Posts
    Blog Algorithm Projects Books
  • Tags
  • Search
Navigation bar avatar
✕

    프로그래머스 - x만큼 간격이 있는 n개의 숫자

    Posted on May 30, 2023

    x만큼 간격이 있는 n개의 숫자 문제 바로가기

    나의 풀이

    def solution(x, n):
        answer = []
        for i in range(n):
            answer.append(x*(i+1))
        return answer
    

    CODE REVIEW

    1. 간단한 구현 문제. range만 잘 따져주면 된다.
    Tags: 구현
    • ← Previous Post
    • Next Post →
    • Email me
    • GitHub
    • Instagram
    • Kaggle

    junha  •  2023

    Powered by Beautiful Jekyll