Skip to content
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

[23-03-09] doha.py #158

Merged
merged 1 commit into from
Mar 16, 2023
Merged

[23-03-09] doha.py #158

merged 1 commit into from
Mar 16, 2023

Conversation

Lee-DoHa
Copy link
Collaborator

@Lee-DoHa Lee-DoHa commented Mar 8, 2023

PR Summary

단속카메라

그리디에 레벨3이라 쫄았는데, 그냥 단순한 문제여서 오히려 당황했습니다
입력된 routes 배열을 오름차순으로 정렬하고, 다음으로 오는 값이 그 전 구간이랑 겹치는지 여부를 확인하고
겹치면 min(이전 값, 현재값의 시작지점) 으로 min_num 값을 바꿔줬고
안겹치면 answer +1 하고 min_num 값에 현재 구간 끝지점을 넣었어요

ISSUE NUMBER

@Lee-DoHa Lee-DoHa self-assigned this Mar 8, 2023
@da-in da-in merged commit fba2772 into da-in:main Mar 16, 2023
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.

None yet

2 participants