-
Notifications
You must be signed in to change notification settings - Fork 0
feat: [프로그래머스][greedy] 001 - 003 #8
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: develop
Are you sure you want to change the base?
Conversation
ts-programmers/greedy/001_체육복.ts
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.
이런 경우엔 어차피 key가 안빠지고 순서대로 있어서 배열로 해도 됩니다.
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.
배열 버전 추가해보았습니다!
02ed3e0 to
2d74445
Compare
ts-programmers/greedy/001_체육복.ts
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.
이걸 findIndex를 꼭 써야할까요?
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문 두번 돌리는거 말고 생각나질 않습니다 ㅜ.ㅜ
ts-programmers/greedy/001_체육복.ts
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.
저번에 어떻게 설명했었는지 잘 기억이 안나는데, 그냥 빈배열로 초기화해놓고 index 접근하는 방법도 말씀드렸었나요?
7201943 to
5a00719
Compare
코드리뷰 요청드리빈다!