Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[8주차] 고다혜 #108

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
jewan100 merged 9 commits into GreatAlgorithm-Study:main from KodaHye:main
Nov 2, 2024
Merged

[8주차] 고다혜 #108

jewan100 merged 9 commits into GreatAlgorithm-Study:main from KodaHye:main
Nov 2, 2024

Conversation

Copy link
Contributor

@KodaHye KodaHye commented Oct 29, 2024

No description provided.

Copy link
Contributor

Choose a reason for hiding this comment

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

배열 위치를 하나의 인덱스로 깔끔하게 넘겨주는거...!!! 배우고갑니다!!

KodaHye reacted with thumbs up emoji
Copy link
Contributor

Choose a reason for hiding this comment

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

미리 센 빈칸으로 불 안난 곳 깔끔하게 구하는것도 같이 배워갑니닷😎

KodaHye and jewan100 reacted with thumbs up emoji
Comment on lines +36 to +45
Copy link
Contributor

Choose a reason for hiding this comment

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

저는 요상하게 구했는데 엄청 깔끔하시네여..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

while문을 사용해서 널빤지의 개수를 구해줬는데, 나누기, 나머지 연산을 활용해서 구해주는게 효율적일 것 같아요!!

Copy link
Contributor

Choose a reason for hiding this comment

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

아하 String에 직접 matches를 쓰면 되는군요🤔
문자열 메서드 다 까먹어버렸네요..

KodaHye reacted with thumbs up emoji
Copy link
Contributor

Choose a reason for hiding this comment

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

오호 저도 import java.util.regex.Pattern로 정규표현식 사용해야하는줄 알았는데 matches를 사용할 수 있군요! 관련해서 한번 공부해봐야겠어요👍

KodaHye reacted with thumbs up emoji
t2 -= temp;

// dp[a][b]: a분에 b온도를 맞추기 위한 최소 비용
// 0도부터 t2도까지 확인하므로 dp 크기는 '행: onboard.length, 열: t2 + 1'이 됨
Copy link
Contributor Author

@KodaHye KodaHye Nov 1, 2024

Choose a reason for hiding this comment

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

t2 + 1만으로도 될 줄 알았는데, t2 + 2 해야됨,,, ᅲ - ᅲ

jewan100 reacted with laugh emoji
Copy link
Contributor

@jewan100 jewan100 Nov 1, 2024

Choose a reason for hiding this comment

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

크큭 온도 감소하는 부분 때문에 +2 해야하는 걸로 압니다
저도 그렇게 하려다가 그냥 조건문으로 경계체크해줬네요...

Copy link
Contributor Author

@KodaHye KodaHye Nov 2, 2024

Choose a reason for hiding this comment

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

그렇군요,,, !!

아직도 제가 문제를 정확하게 이해하지 못한 것 같네요!! ᄒᄒ

jewan100 reacted with thumbs up emoji
Copy link
Contributor Author

@KodaHye KodaHye Nov 2, 2024

Choose a reason for hiding this comment

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

PK 값으로 쓰기!

@jewan100 jewan100 merged commit edf565c into GreatAlgorithm-Study:main Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@baexxbin baexxbin baexxbin left review comments

+1 more reviewer

@jewan100 jewan100 jewan100 left review comments

Reviewers whose approvals may not affect merge requirements
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /