본문 바로가기 메뉴 바로가기

Jaime's 기술 블로그

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Jaime's 기술 블로그

검색하기 폼
  • All (499)
    • IntelliJ IDEA (8)
    • SpringBoot (83)
      • Web Application 만들기 (71)
      • JWT 튜토리얼 (5)
    • Java (19)
    • JPA (33)
    • Querydsl (14)
    • SRE (7)
    • gRPC (10)
    • macOS (7)
    • Docker (1)
    • Linux (5)
    • R (5)
    • Test (3)
    • ETC (13)
    • Algorithm (265)
      • LeetCode (258)
    • Retrospect (4)
    • git (1)
    • Architecture (8)
    • Book (10)
      • 함께 자라기 (7)
      • 프로그래머의 뇌 (3)
    • Essay (1)
  • 방명록

Algorithm (265)
[LeetCode - Daily Challenge] 153. Find Minimum in Rotated Sorted Array

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Suppose an array of length n sorted in ascending order is rotated between 1 and n times. For example, the array nums = [0,1,2,4,5,6,7] might become: [4,5,6,7,0,1,2] if it was rotated 4 times. [0,1,2,4,5,6,7] if it was rotated 7 times. Notice that rotating an array [a[0], a[1], a[2], ..., a[n-1]] 1 time results in the array [a[n-1], a[0], a[1], a[2], ..., a[n-..

Algorithm/LeetCode 2021. 9. 1. 10:40
[LeetCode - Daily Challenge] 598. Range Addition II

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are given an m x n matrix M initialized with all 0's and an array of operations ops, where ops[i] = [ai, bi] means M[x][y] should be incremented by one for all 0

Algorithm/LeetCode 2021. 8. 31. 13:31
[LeetCode - Daily Challenge] 330. Patching Array

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given a sorted integer array nums and an integer n, add/patch elements to the array such that any number in the range [1, n] inclusive can be formed by the sum of some elements in the array. Return the minimum number of patches required. Example 1: Input: nums = [1,3], n = 6 Output: 1 Explanation: Combinations of nums are [1], [3], [1,3], which form possible ..

Algorithm/LeetCode 2021. 8. 30. 10:59
[LeetCode - Daily Challenge] 331. Verify Preorder Serialization of a Binary Tree

Problem One way to serialize a binary tree is to use preorder traversal. When we encounter a non-null node, we record the node's value. If it is a null node, we record using a sentinel value such as '#'. For example, the above binary tree can be serialized to the string "9,3,4,#,#,1,#,#,2,#,6,#,#", where '#' represents a null node. Given a string of comma-separated values pre..

Algorithm/LeetCode 2021. 8. 27. 10:30
[LeetCode - Daily Challenge] 633. Sum of Square Numbers

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given a non-negative integer c, decide whether there are two integers a and b such that a^2 + b^2 = c. Example 1: Input: c = 5 Output: true Explanation: 1 * 1 + 2 * 2 = 5 Example 2: Input: c = 3 Output: false Example 3: Input: c = 4 Output: true Example 4: Input: c = 2 Output: true Example 5: Input: c = 1 Output: true Constraints: 0 test(14, false) ); } priva..

Algorithm/LeetCode 2021. 8. 26. 10:30
[LeetCode - Daily Challenge] 537. Complex Number Multiplication

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem A complex number can be represented as a string on the form "real+imaginaryi" where: real is the real part and is an integer in the range [-100, 100]. imaginary is the imaginary part and is an integer in the range [-100, 100]. i^2 == -1. Given two complex numbers num1 and num2 as strings, return a string of the complex number that represents their multiplicat..

Algorithm/LeetCode 2021. 8. 25. 10:37
[LeetCode - Daily Challenge] 653. Two Sum IV - Input is a BST

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given the root of a Binary Search Tree and a target number k, return true if there exist two elements in the BST such that their sum is equal to the given target. Example 1: Input: root = [5,3,6,2,4,null,7], k = 9 Output: trueExample 2: Input: root = [5,3,6,2,4,null,7], k = 28 Output: falseExample 3: Input: root = [2,1,3], k = 4 Output: trueExample 4: Input: ..

Algorithm/LeetCode 2021. 8. 24. 10:30
[LeetCode - Daily Challenge] 850. Rectangle Area II

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem We are given a list of (axis-aligned) rectangles. Each rectangle[i] = [xi1, yi1, xi2, yi2] , where (xi1, yi1) are the coordinates of the bottom-left corner, and (xi2, yi2) are the coordinates of the top-right corner of the ith rectangle. Find the total area covered by all rectangles in the plane. Since the answer may be too large, return it modulo 109 + 7. Ex..

Algorithm/LeetCode 2021. 8. 23. 08:49
[LeetCode] 116. Populating Next Right Pointers in Each Node (Java)

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are given a perfect binary tree where all leaves are on the same level, and every parent has two children. The binary tree has the following definition: struct Node { int val; Node *left; Node *right; Node *next; } Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be set to NULL. Initially,..

Algorithm 2021. 7. 21. 01:51
[LeetCode] 75. Sort Colors

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given an array nums with n objects colored red, white, or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order red, white, and blue. We will use the integers 0, 1, and 2 to represent the color red, white, and blue, respectively. You must solve this problem without using the library's sort function. Example ..

Algorithm 2021. 7. 16. 01:08
이전 1 ··· 23 24 25 26 27 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • github
TAG
  • 알고리즘
  • leetcode
  • proto3
  • Linux
  • JSON
  • 헥사고날 아키텍처
  • spring boot app
  • QueryDSL
  • spring boot application
  • 함께 자라기 후기
  • 스프링 부트 애플리케이션
  • 함께 자라기
  • Spring Data JPA
  • intellij
  • spring boot jwt
  • Java
  • r
  • Spring Boot JPA
  • Jackson
  • gRPC
  • Spring Boot
  • Spring Boot Tutorial
  • 스프링 부트 튜토리얼
  • 스프링 데이터 jpa
  • @ManyToOne
  • 클린 아키텍처
  • 스프링 부트 회원 가입
  • JPA
  • 스프링부트
  • 스프링 부트
more
«   2025/08   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바