소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given the head of a linked list, return the node where the cycle begins. If there is no cycle, return null. There is a cycle in a linked list if there is some node in the list that can be reached again by continuously following the next pointer. Internally, pos is used to denote the index of the node that tail's next pointer is connected to (0-indexed). I..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You have a long flowerbed in which some of the plots are planted, and some are not. However, flowers cannot be planted in adjacent plots. Given an integer array flowerbed containing 0's and 1's, where 0 means empty and 1 means not empty, and an integer n, return if n new flowers can be planted in the flowerbed without violating the no-adjacent-flowers..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given a pattern and a string s, find if s follows the same pattern. Here follow means a full match, such that there is a bijection between a letter in pattern and a non-empty word in s. Example 1: Input: pattern = "abba", s = "dog cat cat dog" Output: true Example 2: Input: pattern = "abba", s = "dog cat cat fish" Output: false Example 3: Input: pattern = "aa..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are given an array representing a row of seats where seats[i] = 1 represents a person sitting in the ith seat, and seats[i] = 0 represents that the ith seat is empty (0-indexed). There is at least one empty seat, and at least one person sitting. Alex wants to sit in the seat such that the distance between him and the closest person to him is maximized. Re..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given an array of integers arr, you are initially positioned at the first index of the array. In one step you can jump from index i to index: i + 1 where: i + 1 = 0. j where: arr[i] == arr[j] and i != j. Return the minimum number of steps to reach the last index of the array. Notice that you can not jump outside of the array ..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem There are some spherical balloons taped onto a flat wall that represents the XY-plane. The balloons are represented as a 2D integer array points where points[i] = [xstart, xend] denotes a balloon whose horizontal diameter stretches between xstart and xend. You do not know the exact y-coordinates of the balloons. Arrows can be shot up directly vertically (in t..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are given the root node of a binary search tree (BST) and a value to insert into the tree. Return the root node of the BST after the insertion. It is guaranteed that the new value does not exist in the original BST. Notice that there may exist multiple valid ways for the insertion, as long as the tree remains a BST after insertion. You can return any of t..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are given the root of a binary tree where each node has a value 0 or 1. Each root-to-leaf path represents a binary number starting with the most significant bit. For example, if the path is 0 -> 1 -> 1 -> 0 -> 1, then this could represent 01101 in binary, which is 13. For all leaves in the tree, consider the numbers represented by the path from the root t..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given two binary strings a and b, return their sum as a binary string. Example 1: Input: a = "11", b = "1" Output: "100" Example 2: Input: a = "1010", b = "1011" Output: "10101" Constraints: 1 = 0) { sum = 0; if (i >= 0 && a.charAt(i--) == '1') { // (1) sum++; } if (j >= 0 && b.charAt(j--) == '1') { // (2) sum++; } sum += carry; // (3) carry =..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem On an infinite plane, a robot initially stands at (0, 0) and faces north. The robot can receive one of three instructions: "G": go straight 1 unit; "L": turn 90 degrees to the left; "R": turn 90 degrees to the right. The robot performs the instructions given in order, and repeats them forever. Return true if and only if there exists a circle in the plane such..
- Total
- Today
- Yesterday
- @ManyToOne
- Java
- 스프링 부트 애플리케이션
- gRPC
- Jackson
- 함께 자라기 후기
- Spring Boot JPA
- 알고리즘
- intellij
- 헥사고날 아키텍처
- Spring Boot Tutorial
- 스프링 부트
- 스프링부트
- leetcode
- Linux
- 스프링 데이터 jpa
- 클린 아키텍처
- spring boot app
- r
- 스프링 부트 튜토리얼
- Spring Data JPA
- spring boot jwt
- spring boot application
- 스프링 부트 회원 가입
- JPA
- QueryDSL
- Spring Boot
- JSON
- proto3
- 함께 자라기
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |