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

Inflearn Community Q&A

minimooo0473's profile image
minimooo0473

asked

Coding Test Practice Test (with C++): For Large Companies

2. Find the Calf 2 (BFS)

시작점의 ch

Written on

·

189

0

안녕하세요.

While문 이전에 Q.push(s)를 통해 시작점을 Q에 넣는데,

시작점 s의 ch[s]=1은 필요 없는지요?

for문 안에서 ch[nx]가 5일 때 skip 할 수 있어 보여서 문의 드립니다.

C++코테 준비 같이 해요!

Answer 1

0

codingcamp님의 프로필 이미지
codingcamp
Instructor

안녕하세요^^

네. 제가 시작점 체크를 놓쳤네요. 감사합니다.

minimooo0473's profile image
minimooo0473

asked

Ask a question