-
Notifications
You must be signed in to change notification settings - Fork 3
[정민서-14주차 알고리즘 스터디] #24
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
minseojeong1012
wants to merge
50
commits into
SSAFY13th-algorithm:minseojeong/week14
Choose a base branch
from
minseojeong1012:main
base: minseojeong/week14
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
[정민서-14주차 알고리즘 스터디] #24
minseojeong1012
wants to merge
50
commits into
SSAFY13th-algorithm:minseojeong/week14
from
minseojeong1012:main
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반 알고리즘 스터디 14주차 [정민서]
📌 문제 풀이 개요
✅ 문제 해결 여부
💡 풀이 방법
문제 1: 로봇 청소기
문제 난이도
골드 5
문제 유형
그래프
접근 방식 및 풀이
청소기가 왼쪽부터 탐색하고, 4방향 모두 청소할 곳이 아니라면 뒤로 후진하는 그대로 구현해서 해결했습니다.
문제 2: 양팔저울
문제 유형
dp
문제 난이도
골드 3
접근 방식 및 풀이
총 3가지 경우를 고려하는 dp를 사용했습니다.
추를 사용안할 경우 dfs(idx + 1, weight);
오른쪽에 추가한다면 dfs(idx + 1, weight + weights[idx]);
왼쪽은 dfs(idx + 1, Math.abs(weight - weights[idx]));
이미 방문하면 리턴 하는 방식으로 dfs 진행했습니
문제 3: 제곱수의 합
문제 유형
dp
문제 난이도
실버 3
접근 방식 및 풀이
최소값을 찾는 방식으로 dp 활용했습니다.
문제 4: 타일 채우기
문제 유형
dp
문제 난이도
골드 4
접근 방식 및 풀이
n이 홀수 일 경우 -> 0 으로 종료
짝수일 경우 dp
아무것도 없는 2x0은 경우의 수 1가지
2x2는 총 3가지 방법
그다음 부터는 마지막에 2칸을 추가하는 방식은 항상 3가지
문제 5: 연구소 3
문제 유형
문제 난이도
접근 방식 및 풀이