Closed ks2colorworld closed 10 months ago
https://www.youtube.com/watch?v=M2mcJvmYpWY&list=PLsMufJgu5933ZkBCHS7bQTx0bncjwi4PK&index=3&ab_channel=Chan-SuShin&t=987
반복문 알고리즘 개선을 위한 코드 비교 (강의 내용에서 언급)
while a!=0 and b != 0: - if a>b: a=a-b - else: b=b-a + if a>b: a=a%b + else: b=b%a whileIndex += 1
gcd1.py
gcd2.py
https://www.youtube.com/watch?v=M2mcJvmYpWY&list=PLsMufJgu5933ZkBCHS7bQTx0bncjwi4PK&index=3&ab_channel=Chan-SuShin&t=987