-
-
Notifications
You must be signed in to change notification settings - Fork 195
[GUMUNYEONG] Week3 문제풀이 #398
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
|
||
|
||
|
||
for (const key in numPair) { |
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.
저도 비슷하게 풀었습니다!
제가 받은 코드 리뷰에서는 "적절한 자료구조를 활용해서 더 효율적인 방식으로 풀어볼 수 있을 것" 이라고 답변을 받았고 다른 풀이 법을 고민 해 봤습니다.
문영님도 해시맵(Map)과 같은 방법을 활용해 보시는 게 좋을 것 같다는 의견을 남깁니다!
안녕하세요~ 이제 자동 워크플로 통해 언어 label 이 알아서 추가되고 있습니다! |
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.
입력으로 nums = [0, 0], target = 0
이 주어진다면 어떨까요? [0, 1]
대신에 undefined
가 반환될 것 같아서 여쭙니다.
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.
앗...!!!! 네 맞습니다..!! 테스트 케이스 이외에 다른 경우를 고려하지 못했네요..
다음부터는 좀 더 세심하게 여러 케이스를 생각해서 짜야겠습니다.
피드백 감사합니다!
답안 제출 문제