본문 바로가기 메뉴 바로가기

Jaime's 기술 블로그

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Jaime's 기술 블로그

검색하기 폼
  • All (492)
    • IntelliJ IDEA (8)
    • SpringBoot (83)
      • Web Application 만들기 (71)
      • JWT 튜토리얼 (5)
    • Java (19)
    • JPA (33)
    • Querydsl (14)
    • gRPC (10)
    • macOS (7)
    • Docker (1)
    • Linux (5)
    • R (5)
    • Test (3)
    • ETC (13)
    • Algorithm (265)
      • LeetCode (258)
    • Retrospect (4)
    • git (1)
    • Architecture (8)
    • Book (10)
      • 함께 자라기 (7)
      • 프로그래머의 뇌 (3)
    • Essay (1)
  • 방명록

leetcode 258 java (1)
258. Add Digits

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given an integer num, repeatedly add all its digits until the result has only one digit, and return it. Example 1: Input: num = 38 Output: 2 Explanation: The process is 38 --> 3 + 8 --> 11 11 --> 1 + 1 --> 2 Since 2 has only one digit, return it. Example 2: Input: num = 0 Output: 0 Constraints: 0 test(0, 0) ); } private void test(int given, int expected) { //..

Algorithm/LeetCode 2022. 2. 15. 10:30
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • github
TAG
  • r
  • Linux
  • JSON
  • 스프링 부트
  • Spring Boot JPA
  • spring boot jwt
  • Spring Data JPA
  • 함께 자라기 후기
  • spring boot app
  • Spring Boot Tutorial
  • 스프링부트
  • JPA
  • 헥사고날 아키텍처
  • Java
  • proto3
  • 스프링 부트 회원 가입
  • Jackson
  • @ManyToOne
  • Spring Boot
  • gRPC
  • 스프링 데이터 jpa
  • leetcode
  • 함께 자라기
  • 클린 아키텍처
  • spring boot application
  • intellij
  • 알고리즘
  • 스프링 부트 애플리케이션
  • QueryDSL
  • 스프링 부트 튜토리얼
more
«   2025/05   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바