인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

haskn05's profile image
haskn05

asked

Introduction to Javascript Algorithm Problem Solving (Coding Test Preparation)

4. Insertion sort

i = 0 ??

Written on

·

283

0

안녕하세요 삽입정렬 강의 듣던중 질문입니다

i=0으로 시작하셨는데 1부터 시작하는 것 아닌가요??

코드 작성전에 원리 설명하실때 i는 1 부터 시작했던것같아서요!

javascript코테 준비 같이 해요!

Answer 1

1

codingcamp님의 프로필 이미지
codingcamp
Instructor

안녕하세요^^

네. 맞습니다. 1부터 시작하는게 더 좋습니다.

i가 0부터 시작해도 에러는 나지 않습니다. 

haskn05's profile image
haskn05

asked

Ask a question