Skip to content

Conversation

Yjason-K
Copy link
Contributor

@Yjason-K Yjason-K commented Dec 21, 2024

답안 제출 문제

체크 리스트

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

@Yjason-K Yjason-K requested a review from nakjun12 December 21, 2024 07:14
@Yjason-K Yjason-K requested a review from a team as a code owner December 21, 2024 07:14
@github-actions github-actions bot added the ts label Dec 21, 2024
@nakjun12
Copy link
Contributor

고생 많으셨습니다! 잘 작성하셨네요.
참고로 유니코드를 활용하면 배열을 한 번만 순회해서 하는 방법도 있던데 한번 보셔도 좋을 것 같습니다~!
감사합니다.

Copy link
Contributor

@HC-kang HC-kang left a comment

Choose a reason for hiding this comment

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

@Yjason-K 님, 2주차도 고생 많으셨습니다!
앞으로도 좋은 풀이 부탁드려요!

/**
* @description
* 동적 프로그래밍(Dynamic Programming, DP)을 사용하여 계단을 오르는 방법 수를 계산합니다.
* - 점화식: dp[i] = dp[i-1] + dp[i-2]
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

* 두 문자열을 비교해서 Anagram 여부 확인
* - 시간 복잡도: O(n)
* - 문자열 순회와 비교 과정을 포함하여 n은 문자열의 길이
* - 공간 복잡도: 0(1)
Copy link
Contributor

Choose a reason for hiding this comment

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

오탈자가 하나 있네요 ㅎㅎ 0(1) -> O(1)
지금 풀이도 충분히 좋고 깔끔하게 잘 풀어주셨는데, 하나의 Object로 좀 더 빨리 리턴 할 수 있지 않을까요!

@SamTheKorean SamTheKorean merged commit 1a83e1d into DaleStudy:main Dec 22, 2024
3 checks 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