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

Jaime's 기술 블로그

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

Jaime's 기술 블로그

검색하기 폼
  • All (499)
    • IntelliJ IDEA (8)
    • SpringBoot (83)
      • Web Application 만들기 (71)
      • JWT 튜토리얼 (5)
    • Java (19)
    • JPA (33)
    • Querydsl (14)
    • SRE (7)
    • 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)
  • 방명록

Algorithm/LeetCode (258)
1302. Deepest Leaves Sum

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given the root of a binary tree, return the sum of values of its deepest leaves. Example 1: Input: root = [1,2,3,4,5,null,6,7,null,null,null,null,8] Output: 15Example 2: Input: root = [6,7,8,2,7,1,3,9,null,1,4,null,null,null,5] Output: 19Constraints: The number of nodes in the tree is in the range [1, 10^4]. 1 test(TreeNode.of(6, 7, 8, 2, 7, 1, 3, 9, null, 1,..

Algorithm/LeetCode 2022. 5. 27. 10:30
329. Longest Increasing Path in a Matrix

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given an m x n integers matrix, return the length of the longest increasing path in matrix. From each cell, you can either move in four directions: left, right, up, or down. You may not move diagonally or move outside the boundary (i.e., wrap-around is not allowed). Example 1: Input: matrix = [[9,9,4],[6,6,8],[2,1,1]] Output: 4 Explanation: The longest increa..

Algorithm/LeetCode 2022. 5. 26. 10:30
1091. Shortest Path in Binary Matrix

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given an n x n binary matrix grid, return the length of the shortest clear path in the matrix. If there is no clear path, return -1. A clear path in a binary matrix is a path from the top-left cell (i.e., (0, 0)) to the bottom-right cell (i.e., (n - 1, n - 1)) such that: All the visited cells of the path are 0. All the adjacent cells of the path are 8-directi..

Algorithm/LeetCode 2022. 5. 23. 10:30
743. Network Delay Time

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are given a network of n nodes, labeled from 1 to n. You are also given times, a list of travel times as directed edges times[i] = (ui, vi, wi), where ui is the source node, vi is the target node, and wi is the time it takes for a signal to travel from source to target. We will send a signal from a given node k. Return the time it takes for all the n node..

Algorithm/LeetCode 2022. 5. 21. 10:30
905. Sort Array By Parity

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given an integer array nums, move all the even integers at the beginning of the array followed by all the odd integers. Return any array that satisfies this condition. Example 1: Input: nums = [3,1,2,4] Output: [2,4,3,1] Explanation: The outputs [4,2,3,1], [2,4,1,3], and [4,2,1,3] would also be accepted.Example 2: Input: nums = [0] Output: [0]Constraints: 1

Algorithm/LeetCode 2022. 5. 20. 10:30
1209. Remove All Adjacent Duplicates in String II

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are given a string s and an integer k, a k duplicate removal consists of choosing k adjacent and equal letters from s and removing them, causing the left and the right side of the deleted substring to concatenate together. We repeatedly make k duplicate removals on s until we no longer can. Return the final string after all such duplicate removals have be..

Algorithm/LeetCode 2022. 5. 19. 10:30
216. Combination Sum III

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Find all valid combinations of k numbers that sum up to n such that the following conditions are true: Only numbers 1 through 9 are used. Each number is used at most once. Return a list of all possible valid combinations. The list must not contain the same combination twice, and the combinations may be returned in any order. Example 1: Input: k = 3, n = 7 Out..

Algorithm/LeetCode 2022. 5. 17. 10:30
17. Letter Combinations of a Phone Number

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. Return the answer in any order. A mapping of digit to letters (just like on the telephone buttons) is given below. Note that 1 does not map to any letters. Example 1: Input: digits = "23" Output: ["ad","ae","af","bd","be","bf","cd","ce..

Algorithm/LeetCode 2022. 5. 14. 10:30
581. Shortest Unsorted Continuous Subarray

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given an integer array nums, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the whole array will be sorted in ascending order. Return the shortest such subarray and output its length. Example 1: Input: nums = [2,6,4,8,10,9,15] Output: 5 Explanation: You need to sort [6, 4, 8, 10, 9] in ascending order to ..

Algorithm/LeetCode 2022. 5. 13. 10:30
1679. Max Number of K-Sum Pairs

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are given an integer array nums and an integer k. In one operation, you can pick two numbers from the array whose sum equals k and remove them from the array. Return the maximum number of operations you can perform on the array. Example 1: Input: nums = [1,2,3,4], k = 5 Output: 2 Explanation: Starting with nums = [1,2,3,4]: - Remove numbers 1 and 4, then ..

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

티스토리툴바