Skip to content

Update 55-1.py #35

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 1 commit into from
Oct 5, 2020
Merged

Update 55-1.py #35

merged 1 commit into from
Oct 5, 2020

Conversation

Wdean45
Copy link
Contributor

@Wdean45 Wdean45 commented Oct 2, 2020

기존 K+1번째 값이 아닌 K번째 값이 추출되도록 변경하였습니다.

기존 K+1번째 값이 아닌 K번째 값이 추출되도록 변경하였습니다.
@likejazz
Copy link
Collaborator

likejazz commented Oct 5, 2020

마지막에 heappop()을 한 번 더 해서 return하기 때문에 지적하신대로 range(1, k)로 처리하는게 맞습니다.
PR 보내 주셔서 감사합니다.

@likejazz likejazz merged commit d19b107 into onlybooks:master Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants