Skip to content

[오늘의 알고리즘] 예상 대진표#71

Merged
ing-eoking merged 1 commit intoBugShelter:mainfrom
yongjun-0903:04-03
Apr 3, 2025
Merged

[오늘의 알고리즘] 예상 대진표#71
ing-eoking merged 1 commit intoBugShelter:mainfrom
yongjun-0903:04-03

Conversation

@yongjun-0903
Copy link
Collaborator

📌 관련 문제

📋 풀이 요약

  1. 처음 든 생각은 a랑 b를 짝수로 바꿔주고 절대값의 차이가 1이면 바로 만난다고 생각하고 그 다음 while을 생각함
  2. 그 다음은 지수로 생각함. 결국 2^n안에 대진으로 만나기 때문
  3. 그러다가 재귀가 생각남 -> 반으로 나눴을 때 a, b가 양쪽에 있으면 무조건 결승에서 만나기 때문
  4. 마지막에 절대값의 차이가 1이면 바로 만난다고 생각했지만 2, 3인 경우 다음 라운드에서 만남

😞 실패한 테스트 케이스

  • 통과

@yongjun-0903 yongjun-0903 requested a review from ing-eoking April 3, 2025 10:16
@yongjun-0903 yongjun-0903 self-assigned this Apr 3, 2025
@yongjun-0903 yongjun-0903 added Algorithm 알고리즘 문제 풀이 🐜 Study 알고리즘 문제 공부 labels Apr 3, 2025
@yongjun-0903 yongjun-0903 linked an issue Apr 3, 2025 that may be closed by this pull request
Copy link
Collaborator

@ing-eoking ing-eoking left a comment

Choose a reason for hiding this comment

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

이번껀 정말 잘 구현한듯

@ing-eoking ing-eoking merged commit 0013544 into BugShelter:main Apr 3, 2025
@yongjun-0903 yongjun-0903 deleted the 04-03 branch April 8, 2025 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Algorithm 알고리즘 문제 풀이 🐜 Study 알고리즘 문제 공부

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[오늘의 알고리즘] 예상 대진표

2 participants