์์ค ์ฝ๋๋ ์ฌ๊ธฐ ์์ต๋๋ค. ๋ฌธ์ ๋ ์ฌ๊ธฐ ์์ต๋๋ค. Problem Given the head of a singly linked list, return the middle node of the linked list. If there are two middle nodes, return the second middle node. Example 1: Input: head = [1,2,3,4,5] Output: [3,4,5] Explanation: The middle node of the list is node 3. Example 2: Input: head = [1,2,3,4,5,6] Output: [4,5,6] Explanation: Since the list has two middle nodes with va..
๋ณธ ํฌ์คํ ์ ๋ฐฑ๊ธฐ์ ๋์ ์คํ๋ง๊ณผ JPA ๊ธฐ๋ฐ ์น ์ ํ๋ฆฌ์ผ์ด์ ๊ฐ๋ฐ ๊ฐ์๋ฅผ ์ฐธ๊ณ ํ์ฌ ์์ฑํ์์ต๋๋ค. ์์ค ์ฝ๋๋ ์ฌ๊ธฐ ์์ต๋๋ค. (commit hash: 73571fb) > git clone https://github.com/lcalmsky/spring-boot-app.git > git checkout 73571fb โน๏ธ squash merge๋ฅผ ์ฌ์ฉํด ๊ธฐ์กด branch๋ฅผ ์ญ์ ํ๊ธฐ๋ก ํ์ฌ ์์ผ๋ก๋ commit hash๋ก ํฌ์คํ ์์ ์ ์์ค ์ฝ๋๋ฅผ ๊ณต์ ํ ์์ ์ ๋๋ค. Overview ์คํ๋ง ์ํ๋ฆฌํฐ ๊ธฐ๋ฅ์ ํ์ฉํ์ฌ ํ์ฌ ์ธ์ฆ๋ ์ฌ์ฉ์ ์ ๋ณด๋ฅผ ์ฐธ์กฐํ๋ ๋ฐฉ๋ฒ์ ์ดํด๋ณด๊ฒ ์ต๋๋ค. Implementation @AuthenticationPrincipal ์ ๋ํ ์ด์ ์ Authentication ๊ฐ์ฒด์ getPrincip..
์์ค ์ฝ๋๋ ์ฌ๊ธฐ ์์ต๋๋ค. ๋ฌธ์ ๋ ์ฌ๊ธฐ ์์ต๋๋ค. Problem The complement of an integer is the integer you get when you flip all the 0's to 1's and all the 1's to 0's in its binary representation. For example, The integer 5 is "101" in binary and its complement is "010" which is the integer 2. Given an integer num, return its complement. Example 1: Input: num = 5 Output: 2 Explanation: The binary repr..
์์ค ์ฝ๋๋ ์ฌ๊ธฐ ์์ต๋๋ค. ๋ฌธ์ ๋ ์ฌ๊ธฐ ์์ต๋๋ค. Problem Given an array of points where points[i] = [xi, yi] represents a point on the X-Y plane and an integer k, return the k closest points to the origin (0, 0). The distance between two points on the X-Y plane is the Euclidean distance (i.e., โ(x1 - x2)^2 + (y1 - y2)^2). You may return the answer in any order. The answer is guaranteed to be unique (except for the ..
Overview ํฐ๋ฏธ๋ ๋ช ๋ น์ด ์ค ํ ์คํธ ์ฒ๋ฆฌ์ ๊ด๋ จ๋ ๋ช ๋ น์ด๋ฅผ ์ ๋ฆฌํฉ๋๋ค. ๋ค์ํ ์ต์ ์ด ์กด์ฌํ์ง๋ง ์ค๋ฌด์์ ์ฌ์ฉํ๋ ๊ฒ๋ค ์์ฃผ๋ก ์ ๋ฆฌํ์์ต๋๋ค. cut Description ํ์ผ ๋ด์ฉ์ ์ปฌ๋ผ์ ๊ธฐ์ค์ผ๋ก ์๋ผ๋ด ์ถ๋ ฅํฉ๋๋ค. Options -b: byte ๊ธฐ์ค์ผ๋ก ์๋ผ๋ -c: character ๊ธฐ์ค์ผ๋ก ์๋ผ๋ -f: ํ๋ ๊ธฐ์ค์ผ๋ก ์๋ผ๋ -d: delimiter ์ง์ --complement: ์ ํ์ ๋ฐ์ ์ํด --output-delimiter=: ์ง์ ํ ๊ตฌ๋ถ์์ ํจ๊ป ์ถ๋ ฅ Examples -f, -d > wc -l /etc/passwd 123 /etc/passwd > wc -l /etc/passwd | cut -f 6 -d ' ' 123 ์ด์ ํฌ์คํ ์์ ๋ค๋ค๋ wc๋ฅผ -l ์ต์ ์ ์ด์ฉํด ๋ผ..
์์ค ์ฝ๋๋ ์ฌ๊ธฐ ์์ต๋๋ค. ๋ฌธ์ ๋ ์ฌ๊ธฐ ์์ต๋๋ค. Problem Given a string s which represents an expression, evaluate this expression and return its value. The integer division should truncate toward zero. You may assume that the given expression is always valid. All intermediate results will be in the range of [-2^31, 2^31 - 1]. Note: You are not allowed to use any built-in function which evaluates strings as mathema..
์์ค ์ฝ๋๋ ์ฌ๊ธฐ ์์ต๋๋ค. ๋ฌธ์ ๋ ์ฌ๊ธฐ ์์ต๋๋ค. Problem Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals, and return an array of the non-overlapping intervals that cover all the intervals in the input. Example 1: Input: intervals = [[1,3],[2,6],[8,10],[15,18]] Output: [[1,6],[8,10],[15,18]] Explanation: Since intervals [1,3] and [2,6] overlaps, merge them into [1,6]...
์์ค ์ฝ๋๋ ์ฌ๊ธฐ ์์ต๋๋ค. ๋ฌธ์ ๋ ์ฌ๊ธฐ ์์ต๋๋ค. Problem There are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1. You are given an array prerequisites where prerequisites[i] = [ai, bi] indicates that you must take course bi first if you want to take course ai. For example, the pair [0, 1], indicates that to take course 0 you have to first take course 1. Return the ordering of cour..
Overview ํฐ๋ฏธ๋ ๋ช ๋ น์ด ์ค ํ ์คํธ ์ฒ๋ฆฌ์ ๊ด๋ จ๋ ๋ช ๋ น์ด๋ฅผ ์ ๋ฆฌํฉ๋๋ค. ๋ค์ํ ์ต์ ์ด ์กด์ฌํ์ง๋ง ์ค๋ฌด์์ ์ฌ์ฉํ๋ ๊ฒ๋ค ์์ฃผ๋ก ์ ๋ฆฌํ์์ต๋๋ค. sort Description ํ์ผ์ ๋ด์ฉ์ ์ ๋ ฌํ์ฌ ํ๋ฉด์ ์ถ๋ ฅํฉ๋๋ค. Options ์์น ์ง์ ์ต์ -k: key๋ฅผ ๊ธฐ์ค์ผ๋ก ์ ๋ ฌ -t: ํ๋ ๊ตฌ๋ถ์๋ก ๋ฐ์ดํฐ ์ปฌ๋ผ์ ๋๋ ์ค(๊ธฐ๋ณธ ๊ฐ์ ๊ณต๋ฐฑ) ์ ๋ ฌ ๊ธฐ์ค ์ต์ -f: ๋์๋ฌธ์ ๋ฌด์ -g: ์ผ๋ฐ ์ซ์ ์ ๋ ฌ -n: ์ซ์ ์ ๋ ฌ -r: ๋ด๋ฆผ์ฐจ์ ์ ๋ ฌ -u: ์ ๋ ฌ ํ ํ์ด ๊ฐ์ ๊ฒฝ์ฐ ์ค๋ณต ์ ๊ฑฐ -g์ -n์ ์ฐจ์ด๋ ์ด๊ณณ์ ์ ๋์์์ต๋๋ค. ์์ฝํ์๋ฉด -g๋ ์ซ์๋ฅผ ๋ถ๋ ์์์ ์ผ๋ก ๋น๊ตํ๋ฏ๋ก ๋๋ฆฌ๊ณ ๋ฐ์ฌ๋ฆผํ๋ ๊ณผ์ ์์ ์ค๋ฅ๊ฐ ๋ฐ์ํ ์ ์์ต๋๋ค. Examples sort.txt ํ์ผ์ ์ ๋ ฌํด๋ณด๊ฒ ์ต๋๋ค. sort.txt..
์์ค ์ฝ๋๋ ์ฌ๊ธฐ ์์ต๋๋ค. ๋ฌธ์ ๋ ์ฌ๊ธฐ ์์ต๋๋ค. Problem You are given the head of a singly linked-list. The list can be represented as: L0 โ L1 โ โฆ โ Ln - 1 โ LnReorder the list to be on the following form: L0 โ Ln โ L1 โ Ln - 1 โ L2 โ Ln - 2 โ โฆYou may not modify the values in the list's nodes. Only nodes themselves may be changed. Example 1: Input: head = [1,2,3,4] Output: [1,4,2,3] Example 2: Input: head = ..
- Total
- 105,559
- Today
- 145
- Yesterday
- 186
- Java
- ํจ๊ป ์๋ผ๊ธฐ
- ์๊ณ ๋ฆฌ์ฆ
- JPA
- ํฅ์ฌ๊ณ ๋ ์ํคํ ์ฒ
- ์คํ๋ง ๋ถํธ ํํ ๋ฆฌ์ผ
- Linux
- Jackson
- Spring Boot Tutorial
- ์คํ๋ง๋ถํธ
- ์คํ๋ง ๋ถํธ
- intellij
- leetcode
- JSON
- Spring Boot
- ํด๋ฆฐ ์ํคํ ์ฒ
- r
- Spring Boot JPA
- gRPC
- Spring Data JPA
- ์คํ๋ง ๋ฐ์ดํฐ jpa
- proto3
- ํจ๊ป ์๋ผ๊ธฐ ํ๊ธฐ
- spring boot application
- spring boot jwt
- @ManyToOne
- ์คํ๋ง ๋ถํธ ํ์ ๊ฐ์
- ์คํ๋ง ๋ถํธ ์ ํ๋ฆฌ์ผ์ด์
- QueryDSL
- spring boot app