์์ค ์ฝ๋๋ ์ฌ๊ธฐ ์์ต๋๋ค. ๋ฌธ์ ๋ ์ฌ๊ธฐ ์์ต๋๋ค. Problem You are given an m x n matrix M initialized with all 0's and an array of operations ops, where ops[i] = [ai, bi] means M[x][y] should be incremented by one for all 0
์์ค ์ฝ๋๋ ์ฌ๊ธฐ ์์ต๋๋ค. ๋ฌธ์ ๋ ์ฌ๊ธฐ ์์ต๋๋ค. Problem Given a sorted integer array nums and an integer n, add/patch elements to the array such that any number in the range [1, n] inclusive can be formed by the sum of some elements in the array. Return the minimum number of patches required. Example 1: Input: nums = [1,3], n = 6 Output: 1 Explanation: Combinations of nums are [1], [3], [1,3], which form possible ..
Problem One way to serialize a binary tree is to use preorder traversal. When we encounter a non-null node, we record the node's value. If it is a null node, we record using a sentinel value such as '#'. For example, the above binary tree can be serialized to the string "9,3,4,#,#,1,#,#,2,#,6,#,#", where '#' represents a null node. Given a string of comma-separated values pre..
์์ค ์ฝ๋๋ ์ฌ๊ธฐ ์์ต๋๋ค. ๋ฌธ์ ๋ ์ฌ๊ธฐ ์์ต๋๋ค. Problem Given a non-negative integer c, decide whether there are two integers a and b such that a^2 + b^2 = c. Example 1: Input: c = 5 Output: true Explanation: 1 * 1 + 2 * 2 = 5 Example 2: Input: c = 3 Output: false Example 3: Input: c = 4 Output: true Example 4: Input: c = 2 Output: true Example 5: Input: c = 1 Output: true Constraints: 0 test(14, false) ); } priva..
์์ค ์ฝ๋๋ ์ฌ๊ธฐ ์์ต๋๋ค. ๋ฌธ์ ๋ ์ฌ๊ธฐ ์์ต๋๋ค. Problem A complex number can be represented as a string on the form "real+imaginaryi" where: real is the real part and is an integer in the range [-100, 100]. imaginary is the imaginary part and is an integer in the range [-100, 100]. i^2 == -1. Given two complex numbers num1 and num2 as strings, return a string of the complex number that represents their multiplicat..
์์ค ์ฝ๋๋ ์ฌ๊ธฐ ์์ต๋๋ค. ๋ฌธ์ ๋ ์ฌ๊ธฐ ์์ต๋๋ค. Problem Given the root of a Binary Search Tree and a target number k, return true if there exist two elements in the BST such that their sum is equal to the given target. Example 1: Input: root = [5,3,6,2,4,null,7], k = 9 Output: trueExample 2: Input: root = [5,3,6,2,4,null,7], k = 28 Output: falseExample 3: Input: root = [2,1,3], k = 4 Output: trueExample 4: Input: ..
์์ค ์ฝ๋๋ ์ฌ๊ธฐ ์์ต๋๋ค. ๋ฌธ์ ๋ ์ฌ๊ธฐ ์์ต๋๋ค. Problem We are given a list of (axis-aligned) rectangles. Each rectangle[i] = [xi1, yi1, xi2, yi2] , where (xi1, yi1) are the coordinates of the bottom-left corner, and (xi2, yi2) are the coordinates of the top-right corner of the ith rectangle. Find the total area covered by all rectangles in the plane. Since the answer may be too large, return it modulo 109 + 7. Ex..
JPA๋ฅผ ์ฌ์ฉํ ๋ Entity์ ํ๋๊ฐ Enum์ธ ๊ฒฝ์ฐ, ์ค์ ์ฝ๋ฉ์์๋ Enum์ Constant๋ฅผ ์ฌ์ฉํ์ง๋ง DB์ ์ ์ฅํ ๋ ๋ฌธ์์ด ๋๋ ์ ์๋ก ๋ ์ฝ๋๋ฅผ ์ ์ฅํ๋ ๊ฒฝ์ฐ๊ฐ ์์ ์ ์์ต๋๋ค. ์ด๋ด ๋ ์ปค์คํ Converter๋ฅผ ๋ง๋ค์ด AttributeConverter๋ฅผ ๊ตฌํํ์ฌ ํด๊ฒฐํ๊ณคํฉ๋๋ค. ๊ทธ๋ฆฌ๊ณ JSON์ ๊ฐ์ฒด๋ก ๋งคํํ ๋ ํด๋น ๊ฐ์ฒด์ Enum์ด ํฌํจ๋ ๊ฒฝ์ฐ์๋ ๋ง์ฐฌ๊ฐ์ง๋ก ๋น์ทํ ์์ ์ ํด์ค์ผ ํฉ๋๋ค. ์ด ๋ ์์ฃผ ์ฌ์ฉ๋๋ static ํ๋์ ๋ฉ์๋๊ฐ ์๋๋ฐ์, ์์๋ฅผ ํ๋ ๋ค์ด๋ณด์๋ฉด, package io.lcalmsky.blogexamples.domain.entity.support; import com.fasterxml.jackson.annotation.JsonCreator; import ..
๋ก์ปฌ ํ๊ฒฝ์์ ๋ฐ์ดํฐ ๋ฒ ์ด์ค๋ฅผ ์ค์ ํ ๋ H2 Database๋ฅผ ๋ง์ด ์ฌ์ฉํ๊ณ ํนํ ๋ฉ๋ชจ๋ฆฌ ๊ธฐ๋ฐ์ผ๋ก ๋์์ํค๋ ์ํฉ์ด ์์ฃผ ๋ฐ์ํฉ๋๋ค. IntelliJ IDEA ์์ Database ํญ์ ํ์ฉํ๋ฉด ๋ฐ๋ก ์ ์ ํด์ ์ด์ฉํ ํ์๊ฐ ์์ด ๊ต์ฅํ ํธ๋ฆฌํฉ๋๋ค. ๋ณดํต ๋ก์ปฌ์ MySQL Workbench๋ H2 Database๋ฅผ ๋ฐ๋ก ์ค์นํด์ ์คํ์ํจ ๋ค Database ํญ ๋ด์์ DataSource๋ฅผ ์ถ๊ฐํ์ฌ ๋ก์ปฌDB์ ์ฐ๋ํ๋ ๋ฐฉ์์ ๋ง์ด ์ฌ์ฉํ๋๋ฐ์, ์ค๋ ์๊ฐํ ๋ฐฉ๋ฒ์ ๋ก์ปฌ์ ๋ฐ๋ก Database๋ฅผ ๋์ฐ์ง ์๊ณ ๋ฉ๋ชจ๋ฆฌ ๊ธฐ๋ฐ์ DataSource๋ฅผ ์ถ๊ฐํ๋ ๋ฐฉ๋ฒ์ ๋๋ค. ๊ฒฐ๊ณผ๋ฌผ์ ๋ณด์ฌ๋๋ฆฌ๊ธฐ ์ํด ์คํ๋ง ๋ถํธ ํ๋ก์ ํธ๋ฅผ ๋ง๋ค์ด ์์ฑํ์์ต๋๋ค. ์ค์ ํ๋ ๋ฐฉ๋ฒ๋ง ํ์ํ์ ๋ถ์ ์ฌ๊ธฐ ์ฐธ๊ณ ํ์๋ฉด ๋ฉ๋๋ค. ์์ค ์ฝ๋๋ ์ฌ๊ธฐ..
๊ฐ๋ฐ์ ์์ ์ปจ๋ฒค์ ์ถฉ์ธ ์ ๋ .proto ํ์ผ ์์ฑ์ ํ์ํ ์ปจ๋ฒค์ ์ ๊ฐ๋ณ๊ฒ ์์๋ณด๊ฒ ์ต๋๋ค. ๊ด๋ จ ์ ๋ณด๋ ๊ณต์ ๋ฌธ์ ๋ด ์คํ์ผ ๊ฐ์ด๋๋ฅผ ์ฐธ๊ณ ํ์์ต๋๋ค. ์ด ๋ฌธ์๋ .proto ํ์ผ์ ๋ํ ์คํ์ผ ๊ฐ์ด๋๋ฅผ ์ ๊ณตํฉ๋๋ค. ์ปจ๋ฒค์ ์ ๋ฐ๋ฅด๋ฉด ํ๋กํ ์ฝ ๋ฒํผ ๋ฉ์์ง ์ ์์ ํด๋น ํด๋์ค๋ฅผ ์ผ๊ด๋๊ณ ์ฝ๊ธฐ ์ฝ๊ฒ ๋ง๋ค ์ ์์ต๋๋ค. ํ๋กํ ์ฝ ๋ฒํผ ์คํ์ผ์ ์๊ฐ์ด ์ง๋จ์ ๋ฐ๋ผ ๋ฐ์ ํ๊ธฐ ๋๋ฌธ์ ๋ค๋ฅธ ๊ท์น์ด๋ ์คํ์ผ๋ก ์์ฑ๋ .proto ํ์ผ์ ๋ณผ ์ ์์ต๋๋ค. ์ด๋ฌํ ๋ ๊ฑฐ์ ํ์ผ์ ์์ ํ ๋๋ ๊ธฐ์กด ์คํ์ผ์ ์ค์ํ๋ ๊ฒ์ด ์ข์ต๋๋ค. ๋ญ๋ ์ผ๊ด์ฑ์ด ์๋ ๊ฒ ์ค์ํ๋๊น์. ์ผ๊ด์ฑ์ด ํต์ฌ์ ๋๋ค. ๊ทธ๋ฌ๋ ์ .proto ํ์ผ์ ๋ง๋ค ๋๋ ํ์ฌ ์ต์์ ์คํ์ผ์ ์ ์ฉํ๋ ๊ฒ์ด ๊ฐ์ฅ ์ข์ต๋๋ค. ํ์ผ ํฌ๋งคํ ์ค ๊ธธ์ด๋ฅผ 80์๋ก ์ ์งํ์ธ์. ..
- Total
- 71,764
- Today
- 127
- Yesterday
- 133
- spring boot application
- JSON
- Spring Boot Tutorial
- spring boot app
- ์คํ๋ง ๋ถํธ ์น ์ ํ๋ฆฌ์ผ์ด์
- ์คํ๋ง ๋ถํธ jwt
- gRPC
- Spring Data JPA
- ์คํ๋ง ๋ถํธ ํํ ๋ฆฌ์ผ
- ์คํ๋ง ๋ถํธ
- ์๊ณ ๋ฆฌ์ฆ
- ์คํ๋ง ๋ถํธ ํ์ ๊ฐ์
- leetcode binary search
- intellij
- ์คํ๋ง ๋ถํธ ์ ํ๋ฆฌ์ผ์ด์
- proto3
- ๋๋ฉ์ธ ์ค๊ณ
- leetcode
- spring boot jwt
- Java
- Linux
- Spring Boot
- ์คํ๋ง๋ถํธ
- leetcode stack
- ์คํ๋ง ๋ฐ์ดํฐ jpa
- leetcode bst
- Jackson
- JPA
- QueryDSL
- r