Skip to content

[jaejeong1] WEEK 11 Solutions #551

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 5 commits into from
Oct 25, 2024
Merged

[jaejeong1] WEEK 11 Solutions #551

merged 5 commits into from
Oct 25, 2024

Conversation

jaejeong1
Copy link
Contributor

@jaejeong1 jaejeong1 commented Oct 24, 2024

답안 제출 문제

체크 리스트

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

@jaejeong1 jaejeong1 self-assigned this Oct 24, 2024
@jaejeong1 jaejeong1 requested a review from a team as a code owner October 24, 2024 11:32
@github-actions github-actions bot added the java label Oct 24, 2024
// 풀이: 역순으로 저장할 스택에 node들을 넣고, 기존 node 1개/스택 node 1개씩 이어 붙인다
// 스택은 LIFO로 저장되기 때문에, 문제에서 요구하는 순서대로 reorderList를 만들 수 있다
// TC: O(N)
// SC: O(2N)
Copy link
Contributor

Choose a reason for hiding this comment

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

혹시 SC에 O(2N)에서 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.

@haklee 기존 ListNode와 새로 생성하는 스택을 모두 더해 2N이라고 표시했는데 기존 ListNode는 원래있던 것이니 N이 맞겠군요..!! 수정했습니다 :)

Copy link
Contributor

@haklee haklee left a comment

Choose a reason for hiding this comment

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

수고 많으셨습니다! description에는 두 문제만 푼 것으로 되어있지만 실제로는 세 문제를 푼 것으 보이는데 이를 반영하여 description 내용을 수정해주시면 좋을것 같고, invert-binary-tree 풀이 끝에 빈 줄이 없어서 linelint를 통과하지 못한 것으로 보이니 이것도 반영하여 수정해주시면 좋을것 같습니다.

@jaejeong1
Copy link
Contributor Author

수고 많으셨습니다! description에는 두 문제만 푼 것으로 되어있지만 실제로는 세 문제를 푼 것으 보이는데 이를 반영하여 description 내용을 수정해주시면 좋을것 같고, invert-binary-tree 풀이 끝에 빈 줄이 없어서 linelint를 통과하지 못한 것으로 보이니 이것도 반영하여 수정해주시면 좋을것 같습니다.

넵! 말씀주신 내용 적용해 업데이트했습니다. 감사합니다!!

@jaejeong1 jaejeong1 merged commit e6c6b28 into DaleStudy:main Oct 25, 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