Open
Conversation
Contributor
There was a problem hiding this comment.
🏷️ 알고리즘 패턴 분석
- 패턴: Sliding Window
- 설명: 이 코드는 고정된 크기의 윈도우를 이동시키며 조건에 맞게 확장하거나 축소하는 슬라이딩 윈도우 패턴을 사용하여 최장 부분 문자열을 찾는다.
Contributor
There was a problem hiding this comment.
🏷️ 알고리즘 패턴 분석
- 패턴: Bit Manipulation
- 설명: 이 코드는 비트 연산자를 활용하여 정수의 비트 순서를 뒤집는 방식으로, 비트 조작을 통해 문제를 해결하는 Bit Manipulation 패턴에 속합니다.
Contributor
📊 시간/공간 복잡도 분석longest-repeating-character-replacement
피드백: 시간 복잡도는 슬라이딩 윈도우와 해시맵을 이용한 최적화된 방법으로 O(n)입니다. 공간 복잡도는 고정된 알파벳 수(대문자/소문자 등)에 따라 O(1)로 적절히 계산됩니다. 개선 제안: 현재 구현이 적절해 보입니다. reverse-bits
피드백: 시간 복잡도는 고정된 32번 반복하는 루프로 인해 O(1)입니다. 공간 복잡도도 상수입니다. 개선 제안: 현재 구현이 적절해 보입니다. 🤖 이 댓글은 GitHub App을 통해 자동으로 작성되었습니다. |
Contributor
📊 jylee2033 님의 학습 현황이번 주 제출 문제
누적 학습 요약
문제 풀이 현황
🤖 이 댓글은 GitHub App을 통해 자동으로 작성되었습니다. 🔢 API 사용량 (gpt-4.1-nano)
|
liza0525
approved these changes
Apr 24, 2026
Contributor
liza0525
left a comment
There was a problem hiding this comment.
깔끔하게 문제를 풀어주셔서 잘 보았습니다 😊 이번주 고생하셨습니다!
|
|
||
| for _ in range(32): | ||
| res = (res << 1) | (n & 1) | ||
| n >>= 1 |
Contributor
There was a problem hiding this comment.
이 문제 bit 연산으로 풀이하셨군요! 덕분에 추가로 알아갑니다 :)
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 하나 이상을 반드시 검토를 해주셔야 합니다!