• Skip to primary navigation
  • Skip to content
  • Skip to footer
FRESHTUNA.LOG
  • Categories
    Dongwon Kim

    Dongwon Kim

    I am studying backend techinques like Spring, Django, AWS.

    • GitHub

    프로그래머스 lv0 피자나눠먹기2

    less than 1 minute read

    1. 피자나눠먹기2

    https://school.programmers.co.kr/learn/courses/30/lessons/120815

    2. 풀이

    def solution(n):
        return n//gcd(n, 6)
    
    # 유클리드 호제법
    def gcd(a, b):
        if b==0:
            return a
        else:
            return gcd(b, a%b)
    

    Categories: Algorithm, posts

    Updated: January 21, 2023

    Share on

    Twitter Facebook LinkedIn
    Previous Next

    Leave a comment

    You may also enjoy

    kubeadm 기반 클러스터 구성 연습

    1 minute read

    설치가이드

    Kubernetes 와 OpenShift

    2 minute read

    컨테이너 가상화 개론

    16 minute read

    Virtualization

    Connection Draining

    1 minute read

    개요

    • Follow:
    • Feed
    © 2024 FRESHTUNA. Powered by Jekyll & Minimal Mistakes.