Skip links

  • Skip to primary navigation
  • Skip to content
  • Skip to footer
Bibliothek für Data-Engineering Bibliothek für Data-Engineering
  • Vorstellung
  • Kategorie
  • Portfolio
    ZSU

    ZSU

    Habe interesse für Data-Engineering. Liebe Fußball.

    • South Korea
    • Email
    • GitHub
    • 🗂 All Posts: 313
    • Algorithm
      • BOJ (12)
      • Codeit (34)
      • LeetCode (12)
      • Programmers (10)
      • Study (9)
      Back-end
      • Django (5)
      Cloud
      • AWS (5)
      Computer Science
      • Network (7)
      • OS (1)
      Data-Engineering
      • Airflow (23)
      • Cli (5)
      • Docker (18)
      • Hadoop (3)
      • Hive (8)
      • Jenkins (1)
      • Kubernetes (12)
      • Linux (7)
      • NoSQL (5)
      • Spark (16)
      • SQL (43)
      • Web Crawling (3)
      Programming
      • Error (13)
      • Git (16)
      • Java (2)
      • Python (20)
      • Books (20)
      Settings
      • Macbook Settings (1)
      • Python Settings (1)

    [Algorithm] 팩토리얼 - 재귀함수

    less than 1 minute read

    Table of Contents

    • ALGORITHM
    • 팩토리얼 - 재귀함수

    ALGORITHM

    • 알고리즘 정리(3)
    • 재귀함수(1)
      • 핵심 : base case와 recursive case 찾기

    팩토리얼 - 재귀함수

    def factorial(n):
        if n == 0:
            return 1
        return factorial(n-1) * n
    
    print(factorial(5))
    
    120
    

    Tags: ALGORITHM

    Categories: CODEIT

    Updated: September 29, 2021

    Share on

    Twitter Facebook LinkedIn
    Previous Next

    You may also enjoy

    [Software Engineering at Google] CH8 Style Guides and Rules

    less than 1 minute read

    [Software Engineering at Google] CH7 Measuring Engineering Productivity

    1 minute read

    [Software Engineering at Google] CH6 Leading at Scale

    2 minute read

    [Software Engineering at Google] CH5 How to Lead a Team

    6 minute read

    • Follow:
    • Feed
    © 2025 ZSU. Powered by Jekyll & Minimal Mistakes.