소스 코드는 여기 있습니다. 문제는 여기 있습니다. 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..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are given a rows x cols matrix grid representing a field of cherries where grid[i][j] represents the number of cherries that you can collect from the (i, j) cell. You have two robots that can collect cherries for you: Robot #1 is located at the top-left corner (0, 0), and Robot #2 is located at the top-right corner (0, cols - 1). Return the maximum number..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given a singly linked list, return a random node's value from the linked list. Each node must have the same probability of being chosen. Implement the Solution class: Solution(ListNode head) Initializes the object with the integer array nums. int getRandom() Chooses a node randomly from the list and returns its value. All the nodes of the list should be e..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem There is a car with capacity empty seats. The vehicle only drives east (i.e., it cannot turn around and drive west). You are given the integer capacity and an array trips where trip[i] = [numPassengersi, fromi, toi] indicates that the ith trip has numPassengersi passengers and the locations to pick them up and drop them off are fromi and toi respectively. The..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. A palindrome string is a string that reads the same backward as forward. Example 1: Input: s = "aab" Output: [["a","a","b"],["aa","b"]] Example 2: Input: s = "a" Output: [["a"]] Constraints: 1
소스 코드는 여기 있습니다. 문제는 여기 있습니다. 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 n, return its complement. Example 1: Input: n = 5 Output: 2 Explanation: 5 is "101" in binar..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem In a town, there are n people labeled from 1 to n. There is a rumor that one of these people is secretly the town judge. If the town judge exists, then: The town judge trusts nobody. Everybody (except for the town judge) trusts the town judge. There is exactly one person that satisfies properties 1 and 2. You are given an array trust where trust[i] = [ai, bi]..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are given a list of songs where the ith song has a duration of time[i] seconds. Return the number of pairs of songs for which their total duration in seconds is divisible by 60. Formally, we want the number of indices i, j such that i < j with (time[i] + time[j]) % 60 == 0. Example 1: Input: time = [30,20,150,100,40] Output: 3 Explanation: Three pairs hav..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given the root of a binary tree, find the maximum value v for which there exist different nodes a and b where v = |a.val - b.val| and a is an ancestor of b. A node a is an ancestor of b if either: any child of a is equal to b or any child of a is an ancestor of b. Example 1: Input: root = [8,3,10,1,6,null,14,null,null,4,7,13] Output: 7 Explanation: We have va..
- Total
- Today
- Yesterday
- Linux
- JSON
- QueryDSL
- proto3
- Spring Boot Tutorial
- 스프링 부트 튜토리얼
- 스프링 부트 회원 가입
- gRPC
- 알고리즘
- leetcode
- Java
- Spring Data JPA
- @ManyToOne
- 클린 아키텍처
- Spring Boot JPA
- 스프링 부트
- JPA
- intellij
- spring boot app
- 헥사고날 아키텍처
- 함께 자라기 후기
- spring boot application
- 함께 자라기
- Spring Boot
- Jackson
- 스프링 부트 애플리케이션
- spring boot jwt
- 스프링 데이터 jpa
- r
- 스프링부트
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |