소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem According to Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970." The board is made up of an m x n grid of cells, where each cell has an initial state: live (represented by a 1) or dead (represented by a 0). Each cell interacts with its eight neighbors ..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given a balanced parentheses string s, return the score of the string. The score of a balanced parentheses string is based on the following rule: "()" has score 1. AB has score A + B, where A and B are balanced parentheses strings. (A) has score 2 * A, where A is a balanced parentheses string. Example 1: Input: s = "()" Output: 1Example 2: Input: s = "(())" O..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem A permutation of an array of integers is an arrangement of its members into a sequence or linear order. For example, for arr = [1,2,3], the following are considered permutations of arr: [1,2,3], [1,3,2], [3,1,2], [2,3,1]. The next permutation of an array of integers is the next lexicographically greater permutation of its integer. More formally, if all the pe..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Write a function that reverses a string. The input string is given as an array of characters s. You must do this by modifying the input array in-place with O(1) extra memory. Example 1: Input: s = ["h","e","l","l","o"] Output: ["o","l","l","e","h"]Example 2: Input: s = ["H","a","n","n","a","h"] Output: ["h","a","n","n","a","H"]Constraints: 1 test(new char[]{&..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are given an array of integers stones where stones[i] is the weight of the ith stone. We are playing a game with the stones. On each turn, we choose the heaviest two stones and smash them together. Suppose the heaviest two stones have weights x and y with x test(new int[]{1, 3}, 2) ); } private void test(int[] given, int expected) { // when Solution solut..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given an integer array arr, and an integer target, return the number of tuples i, j, k such that i < j < k and arr[i] + arr[j] + arr[k] == target. As the answer can be very large, return it modulo 10^9 + 7. Example 1: Input: arr = [1,1,2,2,3,3,4,4,5,5], target = 8 Output: 20 Explanation: Enumerating by the values (arr[i], arr[j], arr[k]): (1, 2, 5) occurs 8 t..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the ith line are (i, 0) and (i, height[i]). Find two lines that together with the x-axis form a container, such that the container contains the most water. Return the maximum amount of water a container can store. Notice that you may not slant th..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are given the head of a linked list, and an integer k. Return the head of the linked list after swapping the values of the kth node from the beginning and the kth node from the end (the list is 1-indexed). Example 1: Input: head = [1,2,3,4,5], k = 2 Output: [1,4,3,2,5]Example 2: Input: head = [7,9,6,6,7,8,3,0,9,5], k = 5 Output: [7,9,6,6,8,7,3,0,9,5]Const..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are given an array people where people[i] is the weight of the ith person, and an infinite number of boats where each boat can carry a maximum weight of limit. Each boat carries at most two people at the same time, provided the sum of the weight of those people is at most limit. Return the minimum number of boats to carry every given person. Example 1: In..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Write an efficient algorithm that searches for a value target in an m x n integer matrix matrix. This matrix has the following properties: Integers in each row are sorted from left to right. The first integer of each row is greater than the last integer of the previous row. Example 1: Input: matrix = [[1,3,5,7],[10,11,16,20],[23,30,34,60]], target = 3 Output:..
- Total
- Today
- Yesterday
- 함께 자라기
- Java
- QueryDSL
- Spring Data JPA
- Jackson
- 스프링 부트
- JPA
- gRPC
- Spring Boot
- spring boot jwt
- intellij
- Spring Boot Tutorial
- 함께 자라기 후기
- Linux
- 알고리즘
- proto3
- leetcode
- 스프링 부트 애플리케이션
- spring boot app
- 헥사고날 아키텍처
- @ManyToOne
- JSON
- 클린 아키텍처
- 스프링 부트 회원 가입
- 스프링 데이터 jpa
- r
- Spring Boot JPA
- 스프링부트
- 스프링 부트 튜토리얼
- spring boot application
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |