asked
Introduction to Python Algorithm Problem Solving (Coding Test Preparation)
7. Number of prime numbers (Sieve of Eratosthenes)
Written on
·
267
0
Answer 1
1
ch 배열을 만들때 8개를 만들려고하면
배열 인덱스 0 1 2 4 5 6 7 이렇게 8개 만들어집니다
우리가 일반적으로 n개 만들려고하면 1부터 시작하잖아요
1부터 시작하면 아무래도 가독성? 이 좋죠
1부터 시작하려면 n+1개 를 만들어야하는걸로 알고있어요