Skip to content

240604 이승환 0x03 0x04 풀이 #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 4, 2024
Merged

240604 이승환 0x03 0x04 풀이 #6

merged 8 commits into from
Jun 4, 2024

Conversation

realcold0
Copy link
Owner

No description provided.

@realcold0 realcold0 changed the title Lsh 240604 이승환 0x03 0x04 풀이 240604 이승환 0x03 0x04 풀이 Jun 4, 2024
Copy link
Collaborator

@Eundongdong Eundongdong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다!!

public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BufferWriter 를 활용하는 부분이 성능을 향상키는군요!

Comment on lines +26 to +28
int start = 0;
int end = arr.length - 1;
int count = 0;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

투포인터로 수를 비교하여 범위를 좁혀나가는 방법이 정말 좋아보입니다. 👍

Comment on lines +18 to +21
if (answer[6] > answer[9])
answer[9]++;
else
answer[6]++;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

6과 9 자리를 균형있게 배분하는 풀이가 저랑 다른 접근 방식이라 새로워요! 저는 따로 변수를 사용하여 풀이했어요

@Eundongdong Eundongdong merged commit c1b280a into main Jun 4, 2024
@realcold0 realcold0 deleted the LSH branch June 7, 2024 16:10
@realcold0 realcold0 restored the LSH branch June 7, 2024 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants