Skip to content

Conversation

mike2ox
Copy link
Contributor

@mike2ox mike2ox commented Dec 8, 2024

답안 제출 문제

체크 리스트

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

@mike2ox mike2ox requested a review from a team as a code owner December 8, 2024 23:17
@mike2ox mike2ox self-assigned this Dec 8, 2024
@github-actions github-actions bot added the ts label Dec 8, 2024
@mike2ox mike2ox requested a review from csucom December 8, 2024 23:19
@mike2ox mike2ox changed the title [mike2ox] Week1 [moonhyeok] Week1 Dec 9, 2024
@mike2ox mike2ox changed the title [moonhyeok] Week1 [mike2ox] Week1 Dec 9, 2024
@HC-kang
Copy link
Contributor

HC-kang commented Dec 9, 2024

안녕하세요 @mike2ox 님!
말씀해 주신 덕분에 CI 스텝을 수정했는데요, 혹시 최근 변경사항까지 반영 후에 다시 확인 해 주실 수 있을까요?

번거롭게 해서 정말 죄송해요!

@mike2ox
Copy link
Contributor Author

mike2ox commented Dec 9, 2024

@HC-kang 넵! 문제풀고 제출하면서 확인해보겠습니다 :) 감사합니다!


// 남은 집을 순회하면서 최대값을 구함
for (let i = 2; i < nums.length; i++)
dp[i] = Math.max(dp[i - 1], dp[i - 2] + nums[i]);
Copy link
Contributor

Choose a reason for hiding this comment

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

안녕하세요~ 점화식을 잘 보면 반복문 내에서 dp[i], dp[i - 1], dp[i - 2] 이렇게 세 요소만 사용하고 있다는 것을 알 수 있는데요
아직 제출까지 시간이 좀 남았으니 공간복잡도 최적화를 도전해보시면 어떨까요? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

한번 해보겠습니다. 🙆‍♂️

@mike2ox mike2ox requested a review from obzva December 11, 2024 10:13
@mike2ox mike2ox merged commit f04849b into DaleStudy:main Dec 12, 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.

3 participants