소스 코드는 여기 있습니다. 문제는 여기 있습니다. 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 = ..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given an array of distinct integers arr, find all pairs of elements with the minimum absolute difference of any two elements. Return a list of pairs in ascending order(with respect to pairs), each pair [a, b] follows a, b are from arr a < b b - a equals to the minimum absolute difference of any two elements in arr Example 1: Input: arr = [4,2,1,3] Output: [[1..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given an encoded string, return its decoded string. The encoding rule is: k[encoded_string], where the encoded_string inside the square brackets is being repeated exactly k times. Note that k is guaranteed to be a positive integer. You may assume that the input string is always valid; No extra white spaces, square brackets are well-formed, etc. Furthermore, y..
Overview 터미널 명령어 중 텍스트 처리에 관련된 명령어를 정리합니다. 다양한 옵션이 존재하지만 실무에서 사용하는 것들 위주로 정리하였습니다. head Description 파일의 앞 부분을 출력합니다. Options 자주 사용하는 옵션을 소개합니다. -c, --bytes=[-]NUM: NUM byte만 출력 -n, --lines=[-]NUM: NUM line만 출력 NUM 에는 Kilo Bytes(K), Mega Bytes(M), Giga Bytes(G), Tera Bytes(T)를 입력할 수 있습니다. (e.g. 5K, 10M, 15G) NUM앞에 -를 붙이면 마지막 NUM 만큼의 bytes 또는 lines만큼을 제외하고 출력합니다. Examples spring.log라는 파일에 head 명령어..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given an m x n binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area. Example 1: Input: matrix = [["1","0","1","0","0"],["1","0","1","1","1"],["1","1","1","1","1"],["1","0","0","1","0"]] Output: 4 Example 2: Input: matrix = [["0","1"],["1","0"]] Output: 1 Example 3: Input: matrix = [["0"]] Output: 0..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given the head of a singly linked list, sort the list using insertion sort, and return the sorted list's head. The steps of the insertion sort algorithm: Insertion sort iterates, consuming one input element each repetition and growing a sorted output list. At each iteration, insertion sort removes one element from the input data, finds the location it bel..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given the root node of a binary search tree and two integers low and high, return the sum of values of all nodes with a value in the inclusive range [low, high]. Example 1: Input: root = [10,5,15,3,7,null,18], low = 7, high = 15 Output: 32 Explanation: Nodes 7, 10, and 15 are in the range [7, 15]. 7 + 10 + 15 = 32. Example 2: Input: root = [10,5,15,3,7,13,18,..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You have two types of tiles: a 2 x 1 domino shape and a tromino shape. You may rotate these shapes. Given an integer n, return the number of ways to tile an 2 x n board. Since the answer may be very large, return it modulo 109 + 7. In a tiling, every square must be covered by a tile. Two tilings are different if and only if there are two 4-directionally adjac..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem The power of the string is the maximum length of a non-empty substring that contains only one unique character. Given a string s, return the power of s. Example 1: Input: s = "leetcode" Output: 2 Explanation: The substring "ee" is of length 2 with the character 'e' only. Example 2: Input: s = "abbcccddddeeeeedcba" Output: 5 Explanation: The substring ..
- Total
- Today
- Yesterday
- spring boot jwt
- spring boot application
- 스프링 부트 튜토리얼
- Spring Boot JPA
- Java
- Spring Boot Tutorial
- 스프링 부트 회원 가입
- spring boot app
- 스프링 부트 애플리케이션
- r
- intellij
- Linux
- JSON
- 함께 자라기
- 스프링 부트
- leetcode
- JPA
- Spring Data JPA
- 함께 자라기 후기
- @ManyToOne
- QueryDSL
- 스프링 데이터 jpa
- proto3
- 스프링부트
- Spring Boot
- Jackson
- 알고리즘
- 클린 아키텍처
- 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 | 29 | 30 |