Skip to content

Conversation

imsosleepy
Copy link
Contributor

@imsosleepy imsosleepy commented Dec 14, 2024

답안 제출 문제

체크 리스트

  • PR을 프로젝트에 추가하고 Week를 현재 주차로 설정해주세요.
  • 바로 앞에 PR을 열어주신 분을 코드 검토자로 지정해주세요.
  • 문제를 모두 푸시면 프로젝트에서 Status를 In Review로 설정해주세요.
  • 코드 검토자 1분 이상으로부터 승인을 받으셨다면 PR을 병합해주세요.

@imsosleepy imsosleepy requested a review from rivkode December 14, 2024 04:47
@imsosleepy imsosleepy self-assigned this Dec 14, 2024
@imsosleepy imsosleepy requested a review from a team as a code owner December 14, 2024 04:47
@github-actions github-actions bot added the java label Dec 14, 2024
Comment on lines +7 to +16
while (left < right) {
while (left < right && !Character.isLetterOrDigit(s.charAt(left))) left++;
while (left < right && !Character.isLetterOrDigit(s.charAt(right))) right--;

if (Character.toLowerCase(s.charAt(left)) != Character.toLowerCase(s.charAt(right))) {
return false;
}
left++;
right--;
}
Copy link
Member

Choose a reason for hiding this comment

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

코드가 깔끔하고 이해하기 쉽게 작성된 것 같습니다.
정규표현식이 재미없어 isLetterOrDigit() 메서드를 사용하신 것도 좋아보입니다~

Copy link
Member

@rivkode rivkode left a comment

Choose a reason for hiding this comment

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

수고하셨습니다~

@imsosleepy imsosleepy merged commit 933b272 into DaleStudy:main Dec 14, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Completed
Development

Successfully merging this pull request may close these issues.

2 participants