소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are given a sorted unique integer array nums. Return the smallest sorted list of ranges that cover all the numbers in the array exactly. That is, each element of nums is covered by exactly one of the ranges, and there is no integer x such that x is in one of the ranges but not in nums. Each range [a,b] in the list should be output as: "a->b" if a != b "a"..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given a linked list, swap every two adjacent nodes and return its head. You must solve the problem without modifying the values in the list's nodes (i.e., only nodes themselves may be changed.) Example 1: Input: head = [1,2,3,4] Output: [2,1,4,3]Example 2: Input: head = [] Output: []Example 3: Input: head = [1] Output: [1]Constraints: The number of nodes ..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given the root of a binary tree, return the maximum width of the given tree. The maximum width of a tree is the maximum width among all levels. The width of one level is defined as the length between the end-nodes (the leftmost and rightmost non-null nodes), where the null nodes between the end-nodes are also counted into the length calculation. It is guarant..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given the head of a linked list, return the list after sorting it in ascending order. Example 1: Input: head = [4,2,1,3] Output: [1,2,3,4] Example 2: Input: head = [-1,5,3,4,0] Output: [-1,0,3,4,5] Example 3: Input: head = [] Output: [] Constraints: The number of nodes in the list is in the range [0, 5 * 104]. -10^5 test(ListNode.of(-1, 5, 3, 4, 0), ListNode...
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given an array nums of size n, return the majority element. The majority element is the element that appears more than ⌊n / 2⌋ times. You may assume that the majority element always exists in the array. Example 1: Input: nums = [3,2,3] Output: 3 Example 2: Input: nums = [2,2,1,1,1,2,2] Output: 2 Constraints: n == nums.length 1
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given an array intervals where intervals[i] = [li, ri] represent the interval [li, ri), remove all intervals that are covered by another interval in the list. The interval [a, b) is covered by the interval [c, d) if and only if c
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are given an array nums of n positive integers. You can perform two types of operations on any element of the array any number of times: If the element is even, divide it by 2. For example, if the array is [1,2,3,4], then you can do this operation on the last element, and the array will be [1,2,3,2]. If the element is odd, multiply it by 2. For example, i..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given a non-empty array of integers nums, every element appears twice except for one. Find that single one. You must implement a solution with a linear runtime complexity and use only constant extra space. Example 1: Input: nums = [2,2,1] Output: 1Example 2: Input: nums = [4,1,2,1,2] Output: 4Example 3: Input: nums = [1] Output: 1Constraints: 1
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen numbers sum to target. You may return the combinations in any order. The same number may be chosen from candidates an unlimited number of times. Two combinations are unique if the frequency of at least one of the ..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given the root of a binary tree, return its maximum depth. A binary tree's maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node. Example 1: Input: root = [3,9,20,null,null,15,7] Output: 3 Example 2: Input: root = [1,null,2] Output: 2 Constraints: The number of nodes in the tree is in the range [0, 1..
- Total
- Today
- Yesterday
- 클린 아키텍처
- 알고리즘
- JPA
- Jackson
- leetcode
- 스프링 부트 회원 가입
- Linux
- Spring Boot
- Spring Boot JPA
- spring boot jwt
- 스프링 데이터 jpa
- proto3
- JSON
- 스프링 부트 애플리케이션
- spring boot app
- 스프링 부트
- spring boot application
- Java
- r
- gRPC
- Spring Data JPA
- 함께 자라기 후기
- Spring Boot Tutorial
- @ManyToOne
- 헥사고날 아키텍처
- QueryDSL
- 스프링 부트 튜토리얼
- 스프링부트
- 함께 자라기
- intellij
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |