-
Notifications
You must be signed in to change notification settings - Fork 5
240524 이현희 0x04 풀이 #11
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
lee-JunR
left a comment
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.
깔끔한 풀이 잘 봤습니다!
레포 PR 알림 오면 1등이 항상 현희님이네요!! 정말 멋져요!!
0x04/이현희/요세푸스_문제.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.
스트림 사용이 익숙하신 것 같네요!
저는 for문으로 하나하나 입력해줬는데... 하나 더 배우고 갑니다!
0x04/이현희/에디터.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.
변수 하나를 줄일 수 있을 것 같지만 가독성을 위해 따로 놓아도 상관없을 것 같네요..!
혹시 이러한 상황에서 현희님은 변수를 선언하는 기준이 있으신지 궁금하네요!
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.
사실 변수 개수에 대해서 생각해 본 적이 없지만...! 변수 개수가 많지 않은 이상 가독성을 위해서 따로 선언할 것 같습니다 ㅎㅎ!
0x04/이현희/방_배정.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.
보통 사람들이 indent가 3개 이상 들어가면 이해하기 어려워진다고 해요!
물론 코딩 테스트가 아닌 실제 프로젝트 코드에서는 함수화로 indent를 줄이시겠지만!
코딩 테스트를 할때처럼 어쩔 수� 없을 때는 꼭 기능 별 주석이 아니더라도
if(...){
if(...){
...
} else { // 2의 else
...
}
}else{ // 1 의 else
...
}
이런식으로 주석을 달아주시면 코드를 이해하기 훨씬 쉬울 것 같아요!
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.
0x04/이현희/애너그램_만들기.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.
아..! 이렇게 쉽게!! 빈도수를 계산할 수 있었네요... 저는 HashMap으로 딕셔너리를 만들어서 하나하나 카운팅했는데 훨씬 코드가 깔끔한 것 같아요!
240524 이현희 0x04 풀이