[W01] 김대원 주간 풀이 - #14
Merged
Merged
Conversation
Contributor
🤖 PR 자동 분석
변경된 풀이
|
CryingDitto
reviewed
Jul 30, 2026
|
|
||
| if (nextRow < 0 || nextRow >= N || | ||
| nextCol < 0 || nextCol >= N || | ||
| snail[nextRow][nextCol] != 0) |
Collaborator
There was a problem hiding this comment.
0으로 판별하기 재밌는 방법! 아이디아 얻어가요~
Collaborator
|
달팽이 문제 엄청 깔끔하게 푸신 것 같아요 👍 |
Collaborator
|
고생하셨습니다 ㅎㅎ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
💡 핵심 접근
1954: 방향의 순서에 맞게 배열을 만든 뒤, 범위를 체크하면서 반복문을 사용해 해결했습니다.
2001: 크기를 체크해서 범위 내에서만 실행하도록 했습니다. 4중 for문을 사용했지만, 범위 내에서만 동작하도록 해
불필요한 부분은 체크하지 않도록 구현했습니다.
1209: 행, 열, 대각선들이 합을 구해서 비교해서 최대를 구했습니다.
1244: 풀지 못해서 AI의 도움을 받았습니다. 코드는 올리지 않았습니다.
🔍 리뷰 요청