1342. Number of Steps to Reduce a Number to Zero
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given an integer num, return the number of steps to reduce it to zero. In one step, if the current number is even, you have to divide it by 2, otherwise, you have to subtract 1 from it. Example 1: Input: num = 14 Output: 6 Explanation: Step 1) 14 is even; divide by 2 and obtain 7. Step 2) 7 is odd; subtract 1 and obtain 6. Step 3) 6 is even; divide by 2 and o..
Algorithm/LeetCode
2022. 6. 11. 10:30
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Spring Boot Tutorial
- 스프링 부트
- intellij
- 함께 자라기
- 스프링 부트 애플리케이션
- 함께 자라기 후기
- Java
- 스프링 부트 튜토리얼
- spring boot application
- r
- Jackson
- 스프링 데이터 jpa
- spring boot app
- gRPC
- Spring Boot
- proto3
- 클린 아키텍처
- @ManyToOne
- QueryDSL
- JSON
- 헥사고날 아키텍처
- JPA
- Linux
- Spring Boot JPA
- leetcode
- spring boot jwt
- 알고리즘
- 스프링 부트 회원 가입
- Spring Data JPA
- 스프링부트
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
글 보관함
