Skip to content

[YoungSeok-Choi] week 3 solutions #1262

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

Merged
merged 6 commits into from
Apr 19, 2025

Conversation

YoungSeok-Choi
Copy link
Contributor

@YoungSeok-Choi YoungSeok-Choi commented Apr 12, 2025

답안 제출 문제

작성자 체크 리스트

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

검토자 체크 리스트

Important

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

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

@YoungSeok-Choi YoungSeok-Choi self-assigned this Apr 12, 2025
@YoungSeok-Choi YoungSeok-Choi changed the title [Week 3] week 3 solutions [YoungSeok-Choi] week 3 solutions Apr 12, 2025
@Sung-Heon Sung-Heon self-requested a review April 12, 2025 04:39
@Sung-Heon
Copy link
Contributor

week 2로 보입니다.

Comment on lines 22 to 38
for(char c: s.toCharArray()) {
if(sMap.containsKey(c)) {
int cnt = sMap.get(c);
sMap.put(c, cnt + 1);
} else {
sMap.put(c, 1);
}
}

for(char c: t.toCharArray()) {
if(tMap.containsKey(c)) {
int cnt = tMap.get(c);
tMap.put(c, cnt + 1);
} else {
tMap.put(c, 1);
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

for (int i = 0; i < s.length(); i++) {

이렇게 하고 한번 순회할때 양쪽 다 체크하면 o(n)에서 끝날수있을것 같네요.
n!=m인 경우는 이미 처음에 false로 리턴하니까요.

@YoungSeok-Choi
Copy link
Contributor Author

week 2로 보입니다.

week 2 작업들이 아직 어프를 받지 못해 Merge가 되지 못한 상황이라 diff가 잡히는 현상입니다..!
(week2 관련 코드들이 병합되면 보이지 않을 diff입니닷)

@soobing
Copy link
Contributor

soobing commented Apr 13, 2025

안녕하세요! 먼저 approve가 늦어서 죄송합니다 :( 제가 개인적으로 급한일이 생겨서 머지가 되더라도 이따가 저녁에 코드는 살펴보고 리뷰 남기도록하겠습니다.

@YoungSeok-Choi
Copy link
Contributor Author

안녕하세요! 먼저 approve가 늦어서 죄송합니다 :( 제가 개인적으로 급한일이 생겨서 머지가 되더라도 이따가 저녁에 코드는 살펴보고 리뷰 남기도록하겠습니다.

혹시.. 아래의 PR에 대한 승인을 해주실 수 있을까요!!
(현재 PR은 3주차 문제풀이에 대한 내용도 담고있어서요..! 미리 안내드리지 못한 점 양해부탁드립다😭!)
@soobing

@YoungSeok-Choi YoungSeok-Choi merged commit c2bc5b7 into DaleStudy:main Apr 19, 2025
1 check passed
@github-project-automation github-project-automation bot moved this from Solving to Completed in 리트코드 스터디 4기 Apr 19, 2025
@YoungSeok-Choi YoungSeok-Choi deleted the feature/week-3 branch April 19, 2025 23:50
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.

4 participants