-
Notifications
You must be signed in to change notification settings - Fork 1
[한종욱-12주차 알고리즘 스터디] #63
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
Open
Ukj0ng
wants to merge
70
commits into
main
Choose a base branch
from
ukjong/week-12
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🚀 싸피 15반 알고리즘 스터디 12주차 [한종욱]
📌 문제 풀이 개요
✅ 문제 해결 여부
💡 풀이 방법
문제 1: 틱택토
문제 난이도
Gold 5
문제 유형
구현
접근 방식 및 풀이
규칙을 여러 케이스로 나눠서 풀었습니다.
시간복잡도:$O(n)$
문제 2: 미친 로봇
문제 난이도
Gold 4
문제 유형
DFS
접근 방식 및 풀이
로봇의 이동 경로가 단순한 경로인 경우만 계산했고, 각 이동시 현재 확률에 이동할 때 방향의 확률을 곱했습니다.
시간복잡도:$O(4^n)$
문제 3: 입국심사
문제 난이도
Gold 5
문제 유형
이분 탐색, 매개변수 탐색
접근 방식 및 풀이
심사를 받는데 걸리는 시간을 이분 탐색으로 찾고 찾은 시간 안에 심사를 받을 수 있는지 확인해 최대 시간을 찾습니다.
$target / d$ 으로 target 시간 동안 처리할 수 있는 사람 수를 계산해 판단했습니다.
심사는 각 심사대가 시간 안에 사람을 처리할 수 있는지
시간복잡도:$O(n*log(MAX_VALUE))$
문제 4: 호석이 두 마리 치킨
문제 난이도
Gold 4
문제 유형
플로이드 와샬
접근 방식 및 풀이
가중치를 1로 놓고 플로이드 와샬 알고리즘을 사용했습니다.
시간복잡도:$O(n^3)$