Skip to content

[bus710] Week 06 #887

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 2 commits into from
Jan 17, 2025
Merged

[bus710] Week 06 #887

merged 2 commits into from
Jan 17, 2025

Conversation

bus710
Copy link
Contributor

@bus710 bus710 commented Jan 12, 2025

답안 제출 문제

체크 리스트

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

@bus710 bus710 requested a review from a team as a code owner January 12, 2025 04:17
@github-actions github-actions bot added the go label Jan 12, 2025
@bus710
Copy link
Contributor Author

bus710 commented Jan 12, 2025

Valid parentheses

성능은 상위 1% 하지만 메모리 사용은 하위 20%가 나오네요.
성능이 괜찮게 나온 이유를 짐작하자면, 다른 답변들은 재귀를 이용해서 스택에 push/pop하는 풀이들이 많아서 그런게 아닌가 싶습니다.

시간복잡도는 O(N)이라고 생각 합니다. 아무래도 주어진 슬라이스 하나만 루프를 돌기 때문에...
공간복잡도는 O(1)이지 싶은데, 스택으로 사용한 슬라이스가 주어진 입력 문자열 길이만큼 길어지는 경우가 흔치 않기 때문에....?

@bus710
Copy link
Contributor Author

bus710 commented Jan 13, 2025

한문제만 제출 합니다.
편하실 때 리뷰 부탁 드립니다.

@DaleSeo
Copy link
Member

DaleSeo commented Jan 13, 2025

한문제만 제출 합니다.
편하실 때 리뷰 부탁 드립니다.

@bus710 님, 안녕하세요. @gwbaik9717 님께 리뷰 요청을 하시려고 했던거죠? Asignee로 잘못 지정하신 것 같습니다 😓

Shot 2025-01-13 at 18 13 45

@bus710
Copy link
Contributor Author

bus710 commented Jan 13, 2025

@DaleSeo
아차... 착각했네요.
감사합니다.

Copy link
Contributor

@gwbaik9717 gwbaik9717 left a comment

Choose a reason for hiding this comment

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

안녕하세요, @bus710 님! 코드 공유 감사드립니다. 시간복잡도를 위한 많은 고민을 해주셨다는 인상을 받았습니다. 몇가지 코멘트를 남겨두었는데, 편하게 확인주시면 좋을 것 같습니다! :)

@bus710
Copy link
Contributor Author

bus710 commented Jan 17, 2025

댓글 남겼는데 왜 다 펜딩이 뜨는지 모르겠네요.
구체적인 리뷰 감사합니다, @gwbaik9717 님!

@bus710 bus710 merged commit 2ff195a into DaleStudy:main Jan 17, 2025
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.

3 participants