Skip to content

Conversation

KodaHye
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.

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

Copy link
Contributor

Choose a reason for hiding this comment

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

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

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를 쓰면 되는군요🤔
문자열 메서드 다 까먹어버렸네요..

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를 사용할 수 있군요! 관련해서 한번 공부해봐야겠어요👍

t2 -= temp;

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

Choose a reason for hiding this comment

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

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

Copy link
Contributor

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

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.

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants