Skip to content

Conversation

@duckgii
Copy link

@duckgii duckgii commented Jan 9, 2025

  • Lv2. 구현 완료했습니다.
  • 하드코딩된 리터럴이 없도록 주의해서 진행했습니다!

@duckgii duckgii self-assigned this Jan 9, 2025
Copy link

@chyo1 chyo1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

리뷰에서 공통되는 부분 다 찾아서 바꿔보기~! (hint. 상수, 출력 문자열)
수고하셨습니다~

Comment on lines +5 to +9
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
private final String solution;
BinarySearch() {
solution = "반띵 ㄱㄱ";
}
private static final String solution = "반띵 ㄱㄱ";

변수로 둘 거라면 상수화를 추천합니다

Comment on lines +6 to +22
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enum 내부 필드 활용 굿
벗 파일 분리 해.줘.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Enum 클래스 내부의 static 상수로 옮겨주세요

Comment on lines +41 to +43
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

int보다 랜덤한 AlgorithmType을 뽑은 후 해당 타입을 넘기는게 좋을 것 같아요

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
System.out.println(DEFAULT + algorithmTypes[firstAlgorithm].getType() + DELIMITER + algorithmTypes[secondAlgorithm].getType());
System.out.println("오늘의 알고리즘 : %s, %s", algorithm1.getType(), algorithm2.getType());

처럼 하나의 문자열로 만들어서 넘겨주세요

Comment on lines +63 to +64
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

상동

@enaenen
Copy link

enaenen commented Jan 14, 2025

다른분들이 다 잘 써주셨고, 또 잘 작성해주셔서 좋네요

but 군데군데 접근지정자가 비어보이네요 like my 알고리즘 기본기

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants