Skip to content

Conversation

@jeongpine14
Copy link
Collaborator

📖 풀이한 문제


💡 문제에서 사용된 알고리즘

  • Greedy (그리디)

📜 코드 설명

  • 사람 주변의 거리 K 왼쪽부터 탐색할 것이다.
  • 왼쪽부터 탐색하는 이유는 그 다음 사람이 햄버거 먹을 확률을 높이려면 왼쪽부터 해치워야하기 때문
  • 이때 리스트 인덱스 넘어가지 않게 인덱스 유효성 검사 해주기
  • 먹은 햄버거는 소문자로 바꿔준다.

close #267

@jeongpine14 jeongpine14 added this to the 8월 5주차 milestone Aug 29, 2023
@jeongpine14 jeongpine14 requested review from j2woo and soojik August 29, 2023 06:28
@jeongpine14 jeongpine14 requested a review from a team as a code owner August 29, 2023 06:28
@jeongpine14 jeongpine14 self-assigned this Aug 29, 2023
@j2woo j2woo merged commit dc59b13 into Coding-Test-Study-Group:main Sep 11, 2023
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