Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- JungOl
- 토픽
- LeetCode
- Subscribe
- 반복문
- C언어
- 오늘도 우라라 펫
- 우분투
- 마리아 DB
- 데이터 베이스
- topic
- publish
- 기초
- C++
- 오늘도 우라라 펫 공략
- 그랑사가
- 오늘도 우라라 공략
- 환경설정
- 프로그래밍
- while
- 리눅스
- 우분투-윈도우즈
- ubuntu
- ros
- Linux
- mariaDB
- 오늘도 우라라
- mysql
- 등차수열
- MSG
Archives
- Today
- Total
목록288. Add Digits (1)
하루의 쉼터
[LeetCode] 288. Add Digits
Question Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. Input: 38 Output: 2 Explanation: The process is like: 3 + 8 = 11, 1 + 1 = 2. Since 2 has only one digit, return it. Solution.h //Hearder #include #include class Solution { private : int input_num; public: int addDigits(int num); int inputData(); void outputData(int num); }; Solution.cpp ..
Coding Test/LeetCode
2020. 11. 16. 23:51