[tigermint] WEEK 02 Solutions#2679
Open
tigermint wants to merge 2 commits into
Open
Conversation
Contributor
📊 tigermint 님의 학습 현황이번 주 제출 문제
누적 학습 요약
문제 풀이 현황
🤖 이 댓글은 GitHub App을 통해 자동으로 작성되었습니다. 🔢 API 사용량 (gpt-5-nano)
|
Contributor
There was a problem hiding this comment.
이거 공간복잡도 O(1)에 시간복잡도 O(LogN)까지 줄일수 있어요!
나중에 시도해보시는것도 좋겠네요
배열이 아니라 필요한 정보만 저장하는 방식을 통해 확실하게 공간복잡도 줄이는건 쉽게 하실수 있으실거에요
Contributor
There was a problem hiding this comment.
🏷️ 알고리즘 패턴 분석
- 패턴: Dynamic Programming
- 설명: 클라이밍 스텝 문제는 현재 단계의 경우의 수를 이전 두 단계의 합으로 구하는 대표적인 DP 패턴이다. 배열에 상태를 저장하고 순차적으로 해결하는 형태다.
📊 시간/공간 복잡도 분석
| 복잡도 | |
|---|---|
| Time | O(n) |
| Space | O(n) |
피드백: dp 배열로 각 단계의 경우의 수를 저장해 반복적으로 갱신한다.
개선 제안: 현재 구현이 적절해 보입니다.
💡 풀이에 시간/공간 복잡도를 주석으로 남겨보세요!
Contributor
There was a problem hiding this comment.
🏷️ 알고리즘 패턴 분석
- 패턴: Two Pointers, Greedy, Dynamic Programming
- 설명: 양방향으로 누적 곱을 계산하는 풀이로, 왼쪽 누적 곱과 오른쪽 누적 곱을 합성해 결과를 구한다. 한 번의 순회로 왼쪽 곱, 역방향 순회로 오른쪽 곱을 반영하므로 두 포인터/양방향 누적의 패턴이 핵심이다.
📊 시간/공간 복잡도 분석
| 복잡도 | |
|---|---|
| Time | O(n) |
| Space | O(1) |
피드백: 추가 배열 없이 두 단계 누적 곱으로 결과를 계산한다.
개선 제안: 현재 구현이 적절해 보입니다.
💡 풀이에 시간/공간 복잡도를 주석으로 남겨보세요!
Contributor
There was a problem hiding this comment.
🏷️ 알고리즘 패턴 분석
- 패턴: Hash Map / Hash Set, Greedy
- 설명: 두 문자열의 문자 빈도수를 맵에 기록하고, 두 맵의 키와 값 비교로 anagram 여부를 판단한다. 해시 맵/세트를 이용한 카운트 기반 비교 패턴이 핵심이며, 부분적으로 선형 시간 복잡도를 가진다.
📊 시간/공간 복잡도 분석
| 복잡도 | |
|---|---|
| Time | O(n + m) |
| Space | O(K) |
피드백: 두 맵의 키를 비교하고 각 문자 빈도를 점검한다.
개선 제안: 현재 구현이 적절해 보입니다.
💡 풀이에 시간/공간 복잡도를 주석으로 남겨보세요!
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.
답안 제출 문제
작성자 체크 리스트
In Review로 설정해주세요.검토자 체크 리스트
Important
본인 답안 제출 뿐만 아니라 다른 분 PR 하나 이상을 반드시 검토를 해주셔야 합니다!