소스 코드는 여기 있습니다. 문제는 여기 있습니다. 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,..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. 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..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. 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..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. 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..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. 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
소스 코드는 여기 있습니다. 문제는 여기 있습니다. 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..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. 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..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. 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..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. 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 ..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. 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 ..
- Total
- Today
- Yesterday
- JSON
- 알고리즘
- @ManyToOne
- Spring Boot Tutorial
- Spring Data JPA
- 스프링 부트 애플리케이션
- 스프링 부트 회원 가입
- 헥사고날 아키텍처
- Java
- leetcode
- 스프링부트
- 스프링 부트 튜토리얼
- QueryDSL
- spring boot jwt
- r
- proto3
- spring boot application
- 스프링 부트
- intellij
- JPA
- Jackson
- Linux
- gRPC
- 클린 아키텍처
- spring boot app
- Spring Boot
- Spring Boot JPA
- 함께 자라기 후기
- 함께 자라기
- 스프링 데이터 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 |