Skip to content

Conversation

yeongleej
Copy link
Contributor

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.

ㅠㅠㅠㅠ 흑,,,,, 슬퍼요,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 나중에 기출 다시 풀어보긴 해야겠어요!!

Copy link
Contributor

@KodaHye KodaHye Oct 21, 2024

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.

마자요,,,,! 처음엔 반대방햐으로 하면되겠다해서 하나만 선언했는데, 하다보니 규칙이 없더군요,,, ㅎㅎㅎㅎ 더 깔끔하게 푸는 방법을 연습하겠습니다~

Copy link
Contributor

Choose a reason for hiding this comment

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

인덱스로 전달하는 방식이 젤 깔끔한 것 같아요👍🏻

@KodaHye KodaHye force-pushed the main branch 3 times, most recently from cc213a1 to 3784e7f Compare October 21, 2024 16:39
dfs(tIdx+1, sIdx, tree, skill, cnt);
}
}
} No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

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

dfs로 엄청 깔끔하게 푸신것 같습니다!!! 👍

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.

오호 번호값에 따른 난이도를 배열로 관리하면 빠르고 깔끔하군요!!!

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.

우선순위 큐는 수빈님 코드가 더 깔끔한것 같습니다! 합쳐봐요~ ㅋㅋ 😄

@baexxbin baexxbin merged commit 17dbf18 into GreatAlgorithm-Study:main Oct 26, 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.

4 participants