소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given an integer array nums and an integer k, return the kth largest element in the array. Note that it is the kth largest element in the sorted order, not the kth distinct element. Example 1: Input: nums = [3,2,1,5,6,4], k = 2 Output: 5 Example 2: Input: nums = [3,2,3,1,2,4,5,5,6], k = 4 Output: 4 Constraints: 1
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given a triangle array, return the minimum path sum from top to bottom. For each step, you may move to an adjacent number of the row below. More formally, if you are on index i on the current row, you may move to either index i or index i + 1 on the next row. Example 1: Input: triangle = [[2],[3,4],[6,5,7],[4,1,8,3]] Output: 11 Explanation: The triangle looks..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given a 1-indexed array of integers numbers that is already sorted in non-decreasing order, find two numbers such that they add up to a specific target number. Let these two numbers be numbers[index1] and numbers[index2] where 1
소스 코드는 여기 있습니다. 문제는 여기 있습니다. 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..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given an array nums containing n distinct numbers in the range [0, n], return the only number in the range that is missing from the array. Example 1: Input: nums = [3,0,1] Output: 2 Explanation: n = 3 since there are 3 numbers, so all numbers are in the range [0,3]. 2 is the missing number in the range since it does not appear in nums.Example 2: Input: nums =..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given two binary trees original and cloned and given a reference to a node target in the original tree. The cloned tree is a copy of the original tree. Return a reference to the same node in the cloned tree. Note that you are not allowed to change any of the two trees or the target node and the answer must be a reference to a node in the cloned tree. Example ..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Write a function that takes an unsigned integer and returns the number of '1' bits it has (also known as the Hamming weight). Note: Note that in some languages, such as Java, there is no unsigned integer type. In this case, the input will be given as a signed integer type. It should not affect your implementation, as the integer's internal binary ..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given a collection of numbers, nums, that might contain duplicates, return all possible unique permutations in any order. Example 1: Input: nums = [1,1,2] Output: [[1,1,2], [1,2,1], [2,1,1]]Example 2: Input: nums = [1,2,3] Output: [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]]Constraints: 1
소스 코드는 여기 있습니다. 문제는 여기 있습니다. 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..
- Total
- 83,835
- Today
- 55
- Yesterday
- 439
- @ManyToOne
- Spring Boot Tutorial
- leetcode
- leetcode bst
- spring boot application
- Spring Data JPA
- 스프링 부트 튜토리얼
- spring boot app
- Spring Boot JPA
- 스프링 부트
- 스프링 부트 jwt
- leetcode stack
- JPA
- 알고리즘
- spring boot jwt
- QueryDSL
- Jackson
- 스프링 데이터 jpa
- intellij
- Java
- r
- gRPC
- 스프링 부트 애플리케이션
- 스프링부트
- 스프링 부트 회원 가입
- proto3
- JSON
- leetcode binary search
- Linux
- Spring Boot