Skip to content

Conversation

@Leere1
Copy link

@Leere1 Leere1 commented Jul 3, 2025

신규 아이디 추천 알고리즘 문제 풀이

신규 아이디 추천 코테
Copy link
Member

@Yoepee Yoepee left a comment

Choose a reason for hiding this comment

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

다음에는 브랜치 명을 파일명과 맞춰주세요~
문제 해결하실 때, 나중에 개인 정리와 팀원간 공유를 위해서 주석을 달아주시면 좋을 것 같습니다!

@inti0
Copy link

inti0 commented Jul 4, 2025

문제에서 제시한 규칙을 스텝바이스텝으로 함수분리 해주신 점 좋은 것 같습니다!

코딩테스트라 좀 솔직히 투마치 하다고 느껴지는 부분도 있지만, 개인적으로는 정규표현식 사용할때마다 매번 좀 불안해서

테스트 버튼을 눌렀을때 로그를 찍어가며 어느 부분이 미스 났는지 확인하기도 좋아 번거로운 거 말고는 장점이 확실한 것 같습니다.

checkId같은 경우 각각 스텝이 전부 String을 다시 반환해서 체이닝메소드를 고려해볼 수도 있을 것 같습니다.

return firstStep(new_id)
   .secondStep(new_id)
   .thirdStep (new_id)
...

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