소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You must write an algorithm with O(log n) runtime complexity. Example 1: Input: nums = [1,3,5,6], target = 5 Output: 2 Example 2: Input: nums = [1,3,5,6], target = 2 Output: 1 Example 3..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. A subarray is a contiguous part of an array. Example 1: Input: nums = [-2,1,-3,4,-1,2,1,-5,4] Output: 6 Explanation: [4,-1,2,1] has the largest sum = 6. Example 2: Input: nums = [1] Output: 1 Example 3: Input: nums = [5,4,-1..
본 포스팅은 백기선님의 스프링과 JPA 기반 웹 애플리케이션 개발 강의를 참고하여 작성하였습니다. 소스 코드는 여기 있습니다. (commit hash: 3bb5e59) > git clone https://github.com/lcalmsky/spring-boot-app.git > git checkout 3bb5e59 ℹ️ squash merge를 사용해 기존 branch를 삭제하기로 하여 앞으로는 commit hash로 포스팅 시점의 소스 코드를 공유할 예정입니다. Overview 기존 View 코드의 중복된 내용을 제거합니다. Thymeleaf의 Fragment를 사용합니다. Fragment Fragment에 대한 자세한 내용은 여기 나와있습니다. 간략하게 설명하자면, Fragment는 마크업에서의 fr..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given two integer arrays inorder and postorder where inorder is the inorder traversal of a binary tree and postorder is the postorder traversal of the same tree, construct and return the binary tree. Example 1: Input: inorder = [9,3,15,20,7], postorder = [9,15,7,20,3] Output: [3,9,20,null,null,15,7] Example 2: Input: inorder = [-1], postorder = [-1] Output: [..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given a root node reference of a BST and a key, delete the node with the given key in the BST. Return the root node reference (possibly updated) of the BST. Basically, the deletion can be divided into two stages: Search for a node to remove. If the node is found, delete the node. Example 1: Input: root = [5,3,6,2,4,null,7], key = 3 Output: [5,4,6,2,null,null,..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are given a sorted array consisting of only integers where every element appears exactly twice, except for one element which appears exactly once. Return the single element that appears only once. Your solution must run in O(log n) time and O(1) space. Example 1: Input: nums = [1,1,2,3,3,4,4,8,8] Output: 2 Example 2: Input: nums = [3,3,7,7,10,11,11] Outpu..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given a set of distinct positive integers nums, return the largest subset answer such that every pair (answer[i], answer[j]) of elements in this subset satisfies: answer[i] % answer[j] == 0, or answer[j] % answer[i] == 0 If there are multiple solutions, return any of them. Example 1: Input: nums = [1,2,3] Output: [1,2] Explanation: [1,3] is also accepted. Exa..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any point in time. The robot is trying to reach the bottom-right corner of the grid (marked 'Finish' in the diagram below). How many possible unique paths are there? Example 1: Input: m = 3, n = 7 Out..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given a set of distinct positive integers nums, return the largest subset answer such that every pair (answer[i], answer[j]) of elements in this subset satisfies: answer[i] % answer[j] == 0, or answer[j] % answer[i] == 0 If there are multiple solutions, return any of them. Example 1: Input: nums = [1,2,3] Output: [1,2] Explanation: [1,3] is also accepted. Exa..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Design the CombinationIterator class: CombinationIterator(string characters, int combinationLength) Initializes the object with a string characters of sorted distinct lowercase English letters and a number combinationLength as arguments. next() Returns the next combination of length combinationLength in lexicographical order. hasNext() Returns true if and onl..
- Total
- Today
- Yesterday
- 함께 자라기
- JPA
- Java
- Spring Data JPA
- spring boot jwt
- Spring Boot
- intellij
- 함께 자라기 후기
- 스프링 부트 애플리케이션
- gRPC
- proto3
- Spring Boot Tutorial
- 스프링 부트
- Linux
- QueryDSL
- 스프링 데이터 jpa
- Jackson
- r
- spring boot application
- 스프링 부트 튜토리얼
- 스프링부트
- leetcode
- spring boot app
- Spring Boot JPA
- JSON
- @ManyToOne
- 헥사고날 아키텍처
- 클린 아키텍처
- 알고리즘
- 스프링 부트 회원 가입
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |