Skip to content

Conversation

Zioq
Copy link
Contributor

@Zioq Zioq commented Dec 18, 2024

답안 제출 문제

체크 리스트

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

@Zioq Zioq requested a review from a team as a code owner December 18, 2024 23:18
@github-actions github-actions bot added the js label Dec 18, 2024
@Zioq Zioq requested a review from lylaminju December 18, 2024 23:23
@Zioq Zioq changed the title valid-anagram solution [Zioq] Week2 Dec 18, 2024
Copy link
Contributor

@EgonD3V EgonD3V left a comment

Choose a reason for hiding this comment

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

2주차도 수고 많으셨습니다 번거로우시겠지만 시간복잡도와 공간복잡도 계산이 어떻게 이루어졌는지 표기해주시면 도움이 될 것 같습니다 화이팅

Comment on lines +13 to +15
let a = 0;
let b = 1;
let c = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

디버깅과 협업을 고려해서 각 변수의 의미를 표기하는 변수명 사용을 추천드립니다

Comment on lines +23 to +30
for (let c of s) {
map[c] = (map[c] || 0) + 1;
}

for (let c of t) {
if (!map[c]) return false;
map[c]--;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

변수 c가 불변이라면 let 대신에 const 사용하시는것도 좋을 것 같습니다. for (const c of s)
ref) https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of

@SamTheKorean SamTheKorean merged commit 2099534 into DaleStudy:main Dec 22, 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.

4 participants