-
-
Notifications
You must be signed in to change notification settings - Fork 235
[leebeanbin] WEEK 01 Solution #1674
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
base: main
Are you sure you want to change the base?
Conversation
if(nums.length != arr.size()){ | ||
answer = true; | ||
} | ||
|
||
return answer; |
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.
answer 사용의 목적이 nums.length != arr.size()
확인 용도라면 비교문 자체를 return해도 괜찮지 않을까요? return nums.length == arr.size();
같이요!
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.
생각해보니 그렇네요...!!
two-sum/leebeanbin.java
Outdated
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.
brute force와 map 사용 모두 잘 해주셨네요!
시간, 공간 복잡도도 계산해 주시면 좋을것 같습니다 :)
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.
위 부분은 어떤식으로 하면 될까요??? BigO 표기법 사용이 맞나요??
답안 제출 문제
작성자 체크 리스트
In Review
로 설정해주세요.검토자 체크 리스트
Important
본인 답안 제출 뿐만 아니라 다른 분 PR 하나 이상을 반드시 검토를 해주셔야 합니다!