Skip to content

Conversation

@hozzijeong
Copy link
Contributor

답안 제출 문제

작성자 체크 리스트

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

검토자 체크 리스트

Important

본인 답안 제출 뿐만 아니라 다른 분 PR 하나 이상을 반드시 검토를 해주셔야 합니다!

  • 바로 이전에 올라온 PR에 본인을 코드 리뷰어로 추가해주세요.
  • 본인이 검토해야하는 PR의 답안 코드에 피드백을 주세요.
  • 토요일 전까지 PR을 병합할 수 있도록 승인해주세요.

@hozzijeong hozzijeong self-assigned this Dec 11, 2025
@github-actions github-actions bot added the js label Dec 11, 2025
@hozzijeong hozzijeong changed the title feat: best-time-to-buy-and-sell-stock [hozzijeong] WEEK 05 solutions Dec 11, 2025
@ZetBe ZetBe self-requested a review December 12, 2025 03:04
@ZetBe
Copy link
Contributor

ZetBe commented Dec 13, 2025

안녕하세요 이번에 리뷰를 맡게 되어서 리뷰 해보겠습니다

Copy link
Contributor

Choose a reason for hiding this comment

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

현재 가격에서 앞에 있을 가격들 중 최고가를 정하여 답을 갱신하는군요!

지금은 시간복잡도가 O(n^2)이 나오지만, 여기서 현재 값이 어떻냐에 따라 분기를 나누어서 O(n)까지 줄일 수 있습니다

@DaleSeo DaleSeo merged commit 5f06e53 into DaleStudy:main Dec 14, 2025
3 checks passed
@github-project-automation github-project-automation bot moved this from Solving to Completed in 리트코드 스터디 6기 Dec 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Completed

Development

Successfully merging this pull request may close these issues.

3 participants