-
-
Notifications
You must be signed in to change notification settings - Fork 304
[se6816] WEEK 04 solutions #2135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
안녕하세요! 이번 리뷰를 맡게되었는데요, 잘 부탁드립니다! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
그냥 for문을 통해 순회하셨군요
저는 이진탐색을 통해 풀긴했는데, 혹시 여유가 되신다면 이진탐색으로도 풀어보는 것은 어떨까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아, 먼저 죄송하단 말씀 먼저 드립니다. ZetBe님이 코멘트를 3일 전에 달아주신 것 같은데, 사유는 모르겠으나, 어제까지 저에게 보이지 않아서 뒤늦게 파악했습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저도 다른 분 리뷰하다 보니, 이분탐색으로 풀 수 있다는 것을 파악할 수 있었고, 배움을 얻을 수 있었습니다. 이진탐색으로 풀었던 코드 추가로 커밋하였습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
문제 풀어야할 함수 밖에서 다른 함수를 선언한 것이 인상깊었습니다
그리고 별도의 호출 없이 그냥 max내부에 함수 호출한 것도 오히려 더 간결해보입니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아예 정답용 연결리스트를 새로 만들었군요
저는 개인적으로 프론트엔드 공부를 많이해서 상대적으로 객체지향을 잘 활용하지 않았는데,
기존의 제가 푸는 코딩테스트와는 다른 결의 문제 풀이를 보여주셔서 많은 배움을 얻고간다 생각합니다
| if(outOfIndex(tempX, tempY)) { | ||
| continue; | ||
| } | ||
|
|
||
| if(visited[tempX][tempY]) { | ||
| continue; | ||
| } | ||
|
|
||
| if(board[tempX][tempY] != target.charAt(len)) { | ||
| continue; | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저는 if문 내부에 위 3조건을 한꺼번에 넣었었는데, 그냥 나눠서 continue로 보내도 되었겠네요
|
@DaleStudy 리뷰해줘 |
|
전체적으로 여러 문제에 대한 깔끔한 해결책이 잘 정리되어 있습니다. 특히 시간과 공간 복잡도에 대한 설명이 명확하며, 적절한 알고리즘을 선택하셨네요. 몇 가지 개선점을 제안드리자면:
전반적으로 이해하기 쉽고 효율적인 솔루션들이니, 조금만 다듬어 가독성과 명확성을 높인다면 더욱 좋을 것 같습니다. 수고 많으셨고, 앞으로도 좋은 문제 해결 기대할게요! |
답안 제출 문제
작성자 체크 리스트
In Review로 설정해주세요.검토자 체크 리스트
Important
본인 답안 제출 뿐만 아니라 다른 분 PR 하나 이상을 반드시 검토를 해주셔야 합니다!