Closed 12hyeon closed 3 years ago
짝수면 /2, 홀수면 -1를 시행해서 0을 만들때까지의 단계를 반환하는 문제
풀이 for문에서 if문을 이용해서 0이 될 때까지의 단계를 계산함 (else 대신 continue를 이용해서 시간을 줄임)
짝수면 /2, 홀수면 -1를 시행해서 0을 만들때까지의 단계를 반환하는 문제
풀이 for문에서 if문을 이용해서 0이 될 때까지의 단계를 계산함 (else 대신 continue를 이용해서 시간을 줄임)