Skip to content

Conversation

@fkgnssla
Copy link
Contributor

📖 풀이한 문제

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

  • 백트래킹

📜 해결 방법

  1. 집과 치킨집의 좌표를 저장해 놓는다.
  2. 오픈한 치킨집을 기준으로 백트래킹한다.
  3. 오픈한 치킨집의 수가 m과 같은 경우, 치킨 거리를 계산하고 결과값을 갱신한다.
  4. 오픈한 치킨집을 판단하기 위해 open 배열로 방문여부를 판단한다.

@fkgnssla fkgnssla requested a review from gretea5 November 27, 2023 05:01
@fkgnssla fkgnssla self-assigned this Nov 27, 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