Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 |
Tags
- vscode
- github
- wandb
- docker
- PytorchLightning
- NaverAItech
- datascience
- torchserve
- Matplotlib
- Kaggle
- autoencoder
- rnn
- FastAPI
- 네이버AItech
- python
- 알고리즘
- DeepLearning
- leetcode
- FDS
- 코딩테스트
- Kubernetes
- 완전탐색
- 백준
- 프로그래머스
- pep8
- GCP
- NLP
- GIT
- pytorch
- GitHub Action
Archives
- Today
- Total
목록Euclidean Algorithm (1)
Sangmun
유클리드 호제법(최대공약수), 최소공배수
코딩테스트에서 종종 나오는 정수론 문제 관련한 코드를 정리해보고자 한다. 유클리드 호제법에 대한 설명 https://ko.wikipedia.org/wiki/%EC%9C%A0%ED%81%B4%EB%A6%AC%EB%93%9C_%ED%98%B8%EC%A0%9C%EB%B2%95 유클리드 호제법 - 위키백과, 우리 모두의 백과사전 위키백과, 우리 모두의 백과사전. 유클리드 호제법(-互除法, Euclidean algorithm) 또는 유클리드 알고리즘은 2개의 자연수 또는 정식(整式)의 최대공약수를 구하는 알고리즘의 하나이다. 호제법이란 ko.wikipedia.org * Greatest common divisor(gcd) def gcd(a, b): while b > 0: a, b = b, a % b return a..
알고리즘/알고리즘(초급)
2022. 11. 18. 23:48