Skip to content

Conversation

@ShineCorine
Copy link
Collaborator

문제 및 풀이과정

숫자 변환하기
소요 시간 : ???분

  • 최적해는 없는 것 같아서 너비 우선 탐색으로 풀었습니다. 다행히 시간 초과는 발생하지 않았씁니다.
  • 해당 값을 찾으면 너비 우선 탐색이므로 그게 가장 적은 횟수로 값을 달성한 것이기 때문에 바로 count를 리턴해주고
  • 끝까지 찾지 못하면 -1을 리턴해주는 방식을 사용했습니다.

궁금한 점

@ShineCorine ShineCorine added the PRG 프로그래머스 label Apr 12, 2024
@ShineCorine ShineCorine requested a review from kkkapuq April 12, 2024 00:50
@ShineCorine ShineCorine self-assigned this Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PRG 프로그래머스

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant