Conversation
doitchuu
approved these changes
Apr 14, 2026
| answer += A[i] * B[B.length-i-1]; | ||
| } | ||
|
|
||
| return answer; |
Member
There was a problem hiding this comment.
함수가 역순 정렬이 안좋다는 걸 생각하셔서 최대한 성능 좋게 구현하신 점이 좋네요 👍
| rzCnt++; | ||
| } | ||
| } | ||
| s = Integer.toBinaryString(one); // Java에서 사용하는 이진 변환 함수(String 타입으로 리턴) |
raejun92
approved these changes
Apr 15, 2026
Collaborator
There was a problem hiding this comment.
Java는 내림차순을 하려면 오름차순 정렬 후에 뒤집어야 하는군요ㅠ
비효율을 효율적으로 풀어내시려는 모습에 한 수 배워갑니다!
| rzCnt++; | ||
| } | ||
| } | ||
| s = Integer.toBinaryString(one); // Java에서 사용하는 이진 변환 함수(String 타입으로 리턴) |
Collaborator
There was a problem hiding this comment.
이진수로 바꿔주는 메서드군요!
혹시 4진수나 16진수 같은 건 어떻게 하나요?
Collaborator
Author
There was a problem hiding this comment.
4진수는 따로 함수가 없고
8진수는 Integer.toOctalString(Int타입 변수)
16진수는 Integer.toHexString(Int타입 변수)
로 내장함수로 쉽게 변환이 가능합니다!
sik9252
approved these changes
Apr 18, 2026
Collaborator
sik9252
left a comment
There was a problem hiding this comment.
역시 자바... 기본 문법부터 길군요 그런데도 잘 푸셔서 대단하십니다~! 고생하셨습니다
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.
이렇게 풀었어요
1. 최솟값 만들기
1) 복잡도 계산
2) 접근 아이디어
3) 회고
2. 이진 변환 반복하기
1) 복잡도 계산
2) 접근 아이디어
3) 회고