Skip to content

Conversation

geegong
Copy link
Contributor

@geegong geegong commented Aug 22, 2025

답안 제출 문제

작성자 체크 리스트

  • Projects의 오른쪽 버튼(▼)을 눌러 확장한 뒤, Week를 현재 주차로 설정해주세요.
  • 문제를 모두 푸시면 프로젝트에서 StatusIn Review로 설정해주세요.
  • 코드 검토자 1분 이상으로부터 승인을 받으셨다면 PR을 병합해주세요.

검토자 체크 리스트

Important

본인 답안 제출 뿐만 아니라 다른 분 PR 하나 이상을 반드시 검토를 해주셔야 합니다!

  • 바로 이전에 올라온 PR에 본인을 코드 리뷰어로 추가해주세요.
  • 본인이 검토해야하는 PR의 답안 코드에 피드백을 주세요.
  • 토요일 전까지 PR을 병합할 수 있도록 승인해주세요.

- implement trie prefix tree
- word break
@hyer0705 hyer0705 self-requested a review August 22, 2025 07:13
Copy link
Contributor

@hyer0705 hyer0705 left a comment

Choose a reason for hiding this comment

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

이번 주도 수고하셨습니다!

// Arrays.copyOf()

for (char eachChar : chars) {
numberOfLetters[eachChar - 'a']++; // 각 character 에 해당되는 배열의 인덱스에 1씩 값을 더해간다 ex) aba => ['2', '0', '0', ... ,'0'] / abfcb = ['1', '2', '1', '0', '0', '1', '0'...'0']
Copy link
Contributor

Choose a reason for hiding this comment

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

Java의 경우 문자의 뺄셈 연산은 자동으로 숫자로 변경되는 건가요? 그렇다면 편리하네요!

Copy link
Contributor

Choose a reason for hiding this comment

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

Node class를 내부 클래스로 구현하셨군요. 내부 클래스를 사용한 이유는 Trie class 에서만 사용하기 위해 그렇게 구현하신건지 궁금합니다.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

네넵~ 딱히 내부 클래스로 구현하려고 한건 아닙니다ㅎㅎ 단순히 제 이름 클래스 안에서 문제 풀이하려다보니 그렇게 작성되었네요😅

@geegong geegong merged commit 5adec3f into DaleStudy:main Aug 24, 2025
1 check passed
@github-project-automation github-project-automation bot moved this from In Review to Completed in 리트코드 스터디 5기 Aug 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Completed
Development

Successfully merging this pull request may close these issues.

2 participants