[20251021] PGM / Lv2 / n^2 배열 자르기 / 이강현#1188
Merged
ShinHeeEul merged 1 commit intomainfrom Oct 21, 2025
Merged
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.
🧷 문제 링크
https://school.programmers.co.kr/learn/courses/30/lessons/87390#
🧭 풀이 시간
30분
👀 체감 난이도
✏️ 문제 설명
n*n 배열에서 1행 1열부터 i행 i열까지 영역을 확장하며 i를 저장한다.
그리고 1차원으로 풀어냄.
이때 left에서 right까지의 배열을 반환하자.
ex) n이 3인경우에는 아래와 같음.
1 2 3
2 2 3
3 3 3 -> 1 2 3 2 2 3 3 3 3
🔍 풀이 방법
그냥 생각좀만 하면 몫과 나머지로 쉽게 규칙찾아서 구할 수 있음.
⏳ 회고
ez