소스 코드는 여기 있습니다. 문제는 여기 있습니다. 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...
본 포스팅은 백기선님의 스프링과 JPA 기반 웹 애플리케이션 개발 강의를 참고하여 작성하였습니다. 소스 코드는 여기 있습니다. (commit hash: f3606e5) > git clone https://github.com/lcalmsky/spring-boot-app.git > git checkout f3606e5 ℹ️ squash merge를 사용해 기존 branch를 삭제하기로 하여 앞으로는 commit hash로 포스팅 시점의 소스 코드를 공유할 예정입니다. Overview 프로필 업데이트 중 마지막 기능으로 프로필 이미지 업데이트를 구현합니다. 라이브러리 설치 /src/main/resources/static 경로로 이동해 라이브러리를 설치해줍니다. > cd /src/main/resources/st..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. 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 ..
본 포스팅은 백기선님의 스프링과 JPA 기반 웹 애플리케이션 개발 강의를 참고하여 작성하였습니다. 소스 코드는 여기 있습니다. (commit hash: 9c46a61) > git clone https://github.com/lcalmsky/spring-boot-app.git > git checkout 9c46a61 ℹ️ squash merge를 사용해 기존 branch를 삭제하기로 하여 앞으로는 commit hash로 포스팅 시점의 소스 코드를 공유할 예정입니다. Overview 지난 포스팅에서 구현한 프로필 수정에 대한 테스트 코드를 작성합니다. 기존에 작성했던 테스트와는 다르게 인증된 사용자가 있는 상태에서 테스트 코드를 작성해야 합니다. 대부분의 테스트의 경우 사실 인증된 사용자에 대해 작성해야 할..
- Total
- Today
- Yesterday
- r
- spring boot app
- 스프링 부트 튜토리얼
- proto3
- 스프링 데이터 jpa
- 스프링 부트
- 헥사고날 아키텍처
- Java
- Spring Boot Tutorial
- Spring Boot JPA
- JSON
- @ManyToOne
- 함께 자라기
- 알고리즘
- leetcode
- Linux
- 함께 자라기 후기
- 스프링 부트 애플리케이션
- Spring Data JPA
- spring boot jwt
- 스프링부트
- QueryDSL
- 스프링 부트 회원 가입
- JPA
- Spring Boot
- Jackson
- spring boot application
- 클린 아키텍처
- intellij
- gRPC
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |