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.
문제: BOJ1780 - 종이의 개수
🐣풀이 방법
시간복잡도: O(n*n)
재귀를 활용한 문제, 문제에서 조건을 만족하지못하면 9방향으로 나누어주어야하기때문에, 만약 숫자가 동일하지않는 경우, 길이를 새로 계산해주고, 9방향으로 나누어 재귀하는 방식으로 풀이하였다.
문제: BOJ2630 - 색종이 만들기
🐣풀이 방법
시간복잡도: O(n*n)
종이의 개수가 9방향이었다면 4방향이된 쉬워진 버젼, 풀이방식은 종이의 개수와 동일하고 재귀를 4방향으로 진행한다는 차이이다.
문제: BOJ1992 - 쿼드트리
🐣풀이 방법
시간복잡도: O(n*n)
색종이 만들기와 동일하지만, 재귀 시작전과 후에 ( ) 괄호를 sb에 적재하여 재귀단계를 표시해주면되는 문제이다.
문제: BOJ15650 - N과 M(2) - (8)
주어진 숫자까지의 반복문을 통해, depth가 n이되면 탈출하고 아니면 dfs를 통해 풀이한 문제이다.